1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-15 16:59:09 +03:00

s4-provision: re-open sam.ldb after creating the schema

This enables the full schema during the rest of the provision, which
means indexing is enabled (along with index error checking, such as
duplicate SIDs)
This commit is contained in:
Andrew Tridgell
2010-01-07 10:12:24 +11:00
parent 42f0bdae69
commit 1f25d0a5ad

View File

@ -946,6 +946,15 @@ def setup_samdb(path, setup_path, session_info, provision_backend, lp,
setup_add_ldif(samdb, setup_path("aggregate_schema.ldif"),
{"SCHEMADN": names.schemadn})
message("Reopening sam.ldb with new schema");
samdb.transaction_commit()
samdb = Ldb(session_info=session_info,
credentials=provision_backend.credentials, lp=lp)
samdb.connect(path)
samdb.transaction_start()
if serverrole == "domain controller":
samdb.set_invocation_id(invocationid)
message("Setting up sam.ldb configuration data")
setup_add_ldif(samdb, setup_path("provision_configuration.ldif"), {
"CONFIGDN": names.configdn,