mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
fallout from py_dsdb_DsReplicaAttribute to -> bytes
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
5e21334d60
commit
6b30bcf7b7
@ -49,6 +49,7 @@ import time
|
||||
import re
|
||||
import os
|
||||
import tempfile
|
||||
from samba.compat import text_type
|
||||
|
||||
|
||||
class DCJoinException(Exception):
|
||||
@ -483,6 +484,7 @@ class DCJoinContext(object):
|
||||
v = [rec[a]]
|
||||
else:
|
||||
v = rec[a]
|
||||
v = [x.encode('utf8') if isinstance(x, text_type) else x for x in v]
|
||||
rattr = ctx.tmp_samdb.dsdb_DsReplicaAttribute(ctx.tmp_samdb, a, v)
|
||||
attrs.append(rattr)
|
||||
|
||||
|
Reference in New Issue
Block a user