mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
provision: reorganize attributes so that we don't attribute with DN syntax that depends on non present object
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sat Apr 30 14:51:16 CEST 2011 on sn-devel-104
This commit is contained in:
parent
5e82d1d0a7
commit
da2e34a134
@ -1166,6 +1166,11 @@ def setup_samdb(path, session_info, provision_backend, lp, names,
|
||||
"DESCRIPTOR": descr,
|
||||
})
|
||||
|
||||
# Now register this container in the root of the forest
|
||||
msg = ldb.Message(ldb.Dn(samdb, names.domaindn))
|
||||
msg["subRefs"] = ldb.MessageElement(names.configdn , ldb.FLAG_MOD_ADD,
|
||||
"subRefs")
|
||||
|
||||
# The LDIF here was created when the Schema object was constructed
|
||||
logger.info("Setting up sam.ldb schema")
|
||||
samdb.add_ldif(schema.schema_dn_add, controls=["relax:0"])
|
||||
|
@ -82,15 +82,9 @@ pwdProperties: 1
|
||||
replace: pwdHistoryLength
|
||||
pwdHistoryLength: 24
|
||||
-
|
||||
replace: rIDManagerReference
|
||||
rIDManagerReference: CN=RID Manager$,CN=System,${DOMAINDN}
|
||||
-
|
||||
replace: serverState
|
||||
serverState: 1
|
||||
-
|
||||
replace: subRefs
|
||||
subRefs: ${CONFIGDN}
|
||||
-
|
||||
replace: systemFlags
|
||||
systemFlags: -1946157056
|
||||
-
|
||||
|
@ -2,6 +2,8 @@ dn: ${DOMAINDN}
|
||||
changetype: modify
|
||||
replace: fSMORoleOwner
|
||||
fSMORoleOwner: CN=NTDS Settings,${SERVERDN}
|
||||
replace: rIDManagerReference
|
||||
rIDManagerReference: CN=RID Manager$,CN=System,${DOMAINDN}
|
||||
|
||||
dn: ${SCHEMADN}
|
||||
changetype: modify
|
||||
|
Loading…
x
Reference in New Issue
Block a user