mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
forest_update: we don't need any controls to update sddl attributes
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
f1f79a2e4b
commit
a89b158d3f
@ -317,7 +317,8 @@ objectClass: container
|
||||
"""
|
||||
msg = self.samdb.search(base=dn,
|
||||
attrs=[attr],
|
||||
controls=["search_options:1:2"])
|
||||
controls=[],
|
||||
scope=ldb.SCOPE_BASE)
|
||||
|
||||
assert len(msg) == 1
|
||||
existing_sddl = str(msg[0][attr][0])
|
||||
@ -336,7 +337,7 @@ objectClass: container
|
||||
m[attr] = ldb.MessageElement(new_sddl, ldb.FLAG_MOD_REPLACE,
|
||||
attr)
|
||||
|
||||
self.samdb.modify(m, controls=["relax:0"])
|
||||
self.samdb.modify(m, controls=[])
|
||||
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user