mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
samba-tool group move: use binary encoded group name
Allows to move groups with names like e.g. 'group1 (xy)'. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14296 Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
d0f8e83365
commit
626209beab
@ -607,7 +607,7 @@ class cmd_group_move(Command):
|
||||
domain_dn = ldb.Dn(samdb, samdb.domain_dn())
|
||||
|
||||
filter = ("(&(sAMAccountName=%s)(objectClass=group))" %
|
||||
groupname)
|
||||
ldb.binary_encode(groupname))
|
||||
try:
|
||||
res = samdb.search(base=domain_dn,
|
||||
expression=filter,
|
||||
|
Loading…
Reference in New Issue
Block a user