diff options
author | Stefan Metzmacher <metze@samba.org> | 2023-03-13 13:53:53 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2023-03-22 22:10:32 +0000 |
commit | a89b158d3f1cb65f979a762f25624850fd75e311 (patch) | |
tree | 978bfad4496bfdc88961a3a8b0d4a2cf9ac9ad63 | |
parent | f1f79a2e4b18e4e5a927557889572a9004f7ed32 (diff) | |
download | samba-a89b158d3f1cb65f979a762f25624850fd75e311.tar.gz |
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>
-rw-r--r-- | python/samba/forest_update.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/samba/forest_update.py b/python/samba/forest_update.py index 31dc05cd8e6..2a02c7f0500 100644 --- a/python/samba/forest_update.py +++ b/python/samba/forest_update.py @@ -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 |