mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
samba-tool group edit: use binary encoded group name
Allows to edit 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
104582b73c
commit
f3e7ea0405
@ -873,7 +873,8 @@ class cmd_group_edit(Command):
|
||||
samdb = SamDB(url=H, session_info=system_session(),
|
||||
credentials=creds, lp=lp)
|
||||
|
||||
filter = ("(&(sAMAccountName=%s)(objectClass=group))" % groupname)
|
||||
filter = ("(&(sAMAccountName=%s)(objectClass=group))" %
|
||||
ldb.binary_encode(groupname))
|
||||
|
||||
domaindn = samdb.domain_dn()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user