r20683: load indexes before applying replicated objects,
authorStefan Metzmacher <metze@samba.org>
Thu, 11 Jan 2007 11:11:34 +0000 (11:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:40:21 +0000 (14:40 -0500)
as for every object the repl_meta_data module needs to look
up the object by objectGUID

metze
(This used to be commit 55f845377ce3a7aeb028805754dc9c05d429548e)

source4/scripting/libjs/provision.js

index 6d5e9d4f7086098f8aec594b47ac7c86ba110834..d77b2b6c04652ceff437fa1486560bb77f2cddaf 100644 (file)
@@ -473,6 +473,9 @@ function provision_become_dc(subobj, message, paths, session_info)
        message("Erasing data from partitions\n");
        ldb_erase_partitions(info, samdb, undefined);
 
+       message("Setting up " + paths.samdb + " indexes\n");
+       setup_add_ldif("provision_index.ldif", info, samdb, false);
+
        ok = samdb.transaction_commit();
        assert(ok);