mirror of
https://github.com/samba-team/samba.git
synced 2025-07-16 20:59:12 +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:
committed by
Gerald (Jerry) Carter
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");
|
||||
|
Reference in New Issue
Block a user