summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-01-23 15:24:11 +0100
committerAndrew Bartlett <abartlet@samba.org>2013-01-27 20:14:20 +1100
commitf51248339ae7ba9843e477493a69b0c4f647935a (patch)
treec5331de359151204693b9e19d8a46a7ae573a0a0
parentb5cafa3b84e6cca5ca83fbcc0963def7d0c286d5 (diff)
downloadsamba-f51248339ae7ba9843e477493a69b0c4f647935a.tar.gz
samba-f51248339ae7ba9843e477493a69b0c4f647935a.tar.bz2
samba-f51248339ae7ba9843e477493a69b0c4f647935a.zip
samba_upgradeprovision: fix resetting of 'nTSecurityDescriptor' on schema objects
Without this schema_data_modify() will reject updates to schema objects by default. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rwxr-xr-xsource4/scripting/bin/samba_upgradeprovision2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/samba_upgradeprovision b/source4/scripting/bin/samba_upgradeprovision
index 9daabe318f..9898333bfe 100755
--- a/source4/scripting/bin/samba_upgradeprovision
+++ b/source4/scripting/bin/samba_upgradeprovision
@@ -1360,7 +1360,7 @@ def rebuild_sd(samdb, names):
descr = get_empty_descriptor(names.domainsid)
delta["nTSecurityDescriptor"] = MessageElement(descr, FLAG_MOD_REPLACE,
"nTSecurityDescriptor")
- samdb.modify(delta, ["sd_flags:1:%d" % sd_flags,"relax:0"])
+ samdb.modify(delta, ["sd_flags:1:%d" % sd_flags,"relax:0","local_oid:%s:0" % dsdb.DSDB_CONTROL_DBCHECK])
except LdbError, e:
samdb.transaction_cancel()
res = samdb.search(expression="objectClass=*", base=str(delta.dn),