diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-01-07 10:12:24 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-01-08 13:03:03 +1100 |
commit | 1f25d0a5add1812723dfb93da28bbb80dc5d6757 (patch) | |
tree | fbabbe689a69fad3bbbc3388f60009b010417dec /source4/scripting/python | |
parent | 42f0bdae6952af7e1005b6bf9b4a3c6ecc42d62d (diff) | |
download | samba-1f25d0a5add1812723dfb93da28bbb80dc5d6757.tar.gz samba-1f25d0a5add1812723dfb93da28bbb80dc5d6757.tar.bz2 samba-1f25d0a5add1812723dfb93da28bbb80dc5d6757.zip |
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)
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/provision.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index bb47d2bd5c..0d50789b77 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -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, |