mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r20568: split out the rootdse ldif
and set the isSyncronized = TRUE when we done
metze
(This used to be commit 5875ce1ac6
)
This commit is contained in:
parent
a7bc3801f9
commit
d0e221c4e0
@ -499,6 +499,10 @@ function provision(subobj, message, blank, paths, session_info, credentials, lda
|
||||
|
||||
message("Setting up sam.ldb attributes\n");
|
||||
setup_add_ldif("provision_init.ldif", info, samdb, false);
|
||||
|
||||
message("Setting up sam.ldb rootDSE\n");
|
||||
setup_add_ldif("provision_rootdse_add.ldif", info, samdb, false);
|
||||
|
||||
message("Erasing data from partitions\n");
|
||||
ldb_erase_partitions(info, samdb, ldapbackend);
|
||||
|
||||
@ -566,6 +570,9 @@ function provision(subobj, message, blank, paths, session_info, credentials, lda
|
||||
message("Setting up sam.ldb index\n");
|
||||
setup_add_ldif("provision_index.ldif", info, samdb, false);
|
||||
|
||||
message("Setting up sam.ldb rootDSE marking as syncronized\n");
|
||||
setup_modify_ldif("provision_rootdse_modify.ldif", info, samdb, false);
|
||||
|
||||
var commit_ok = samdb.transaction_commit();
|
||||
if (!commit_ok) {
|
||||
info.message("ldb commit failed: " + samdb.errstring() + "\n");
|
||||
@ -597,6 +604,9 @@ function provision(subobj, message, blank, paths, session_info, credentials, lda
|
||||
message("Setting up sam.ldb index\n");
|
||||
setup_add_ldif("provision_index.ldif", info, samdb, false);
|
||||
|
||||
message("Setting up sam.ldb rootDSE marking as syncronized\n");
|
||||
setup_modify_ldif("provision_rootdse_modify.ldif", info, samdb, false);
|
||||
|
||||
var commit_ok = samdb.transaction_commit();
|
||||
if (!commit_ok) {
|
||||
info.message("samdb commit failed: " + samdb.errstring() + "\n");
|
||||
|
@ -41,23 +41,3 @@ passwordAttribute: sambaNTPwdHistory
|
||||
passwordAttribute: lmPwdHash
|
||||
passwordAttribute: sambaLMPwdHistory
|
||||
passwordAttribute: krb5key
|
||||
|
||||
# the rootDSE module looks in this record for its base data
|
||||
dn: cn=ROOTDSE
|
||||
subschemaSubentry: CN=Aggregate,${SCHEMADN}
|
||||
dsServiceName: CN=NTDS Settings,CN=${NETBIOSNAME},CN=Servers,CN=${DEFAULTSITE},CN=Sites,${CONFIGDN}
|
||||
defaultNamingContext: ${DOMAINDN}
|
||||
rootDomainNamingContext: ${ROOTDN}
|
||||
configurationNamingContext: ${CONFIGDN}
|
||||
schemaNamingContext: ${SCHEMADN}
|
||||
supportedLDAPVersion: 3
|
||||
dnsHostName: ${DNSNAME}
|
||||
ldapServiceName: ${DNSDOMAIN}:${NETBIOSNAME}$@${REALM}
|
||||
serverName: CN=${NETBIOSNAME},CN=Servers,${DEFAULTSITE},CN=Sites,${CONFIGDN}
|
||||
domainFunctionality: 0
|
||||
forestFunctionality: 0
|
||||
domainControllerFunctionality: 2
|
||||
isSynchronized: TRUE
|
||||
vendorName: Samba Team (http://samba.org)
|
||||
vendorVersion: ${VERSION}
|
||||
|
||||
|
18
source4/setup/provision_rootdse_add.ldif
Normal file
18
source4/setup/provision_rootdse_add.ldif
Normal file
@ -0,0 +1,18 @@
|
||||
# the rootDSE module looks in this record for its base data
|
||||
dn: cn=ROOTDSE
|
||||
subschemaSubentry: CN=Aggregate,${SCHEMADN}
|
||||
dsServiceName: CN=NTDS Settings,CN=${NETBIOSNAME},CN=Servers,CN=${DEFAULTSITE},CN=Sites,${CONFIGDN}
|
||||
defaultNamingContext: ${DOMAINDN}
|
||||
rootDomainNamingContext: ${ROOTDN}
|
||||
configurationNamingContext: ${CONFIGDN}
|
||||
schemaNamingContext: ${SCHEMADN}
|
||||
supportedLDAPVersion: 3
|
||||
dnsHostName: ${DNSNAME}
|
||||
ldapServiceName: ${DNSDOMAIN}:${NETBIOSNAME}$@${REALM}
|
||||
serverName: CN=${NETBIOSNAME},CN=Servers,${DEFAULTSITE},CN=Sites,${CONFIGDN}
|
||||
domainFunctionality: 0
|
||||
forestFunctionality: 0
|
||||
domainControllerFunctionality: 2
|
||||
isSynchronized: FALSE
|
||||
vendorName: Samba Team (http://samba.org)
|
||||
vendorVersion: ${VERSION}
|
5
source4/setup/provision_rootdse_modify.ldif
Normal file
5
source4/setup/provision_rootdse_modify.ldif
Normal file
@ -0,0 +1,5 @@
|
||||
# mark the database as syncronized
|
||||
dn: cn=ROOTDSE
|
||||
changetype: modify
|
||||
replace: isSynchronized
|
||||
isSynchronized: TRUE
|
Loading…
Reference in New Issue
Block a user