mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
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>
This commit is contained in:
committed by
Andrew Bartlett
parent
b5cafa3b84
commit
f51248339a
@ -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),
|
||||
|
Reference in New Issue
Block a user