diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-05-08 04:38:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:52:15 -0500 |
commit | 112728c65101948204fe9a7c1373ff21f1724cdb (patch) | |
tree | 633f140cfad853713fd29aef1abd3acc9abaabb7 /source4/scripting/libjs | |
parent | 19d56c775a175c894a0e88ad6c9a918b6fa8c532 (diff) | |
download | samba-112728c65101948204fe9a7c1373ff21f1724cdb.tar.gz samba-112728c65101948204fe9a7c1373ff21f1724cdb.tar.bz2 samba-112728c65101948204fe9a7c1373ff21f1724cdb.zip |
r22756: Make it easier to setup an LDAP replica. Provision with
--partitions-only (suggestions for a better name welcome) will setup
the partitions records, but no any data in those partitions. This can
then point at the already configured remote LDAP server.
Andrew Bartlett
(This used to be commit ee7b06fc832ca7c572205c7c268c3c7c552effa0)
Diffstat (limited to 'source4/scripting/libjs')
-rw-r--r-- | source4/scripting/libjs/provision.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js index 6af753e7eb..948c02470d 100644 --- a/source4/scripting/libjs/provision.js +++ b/source4/scripting/libjs/provision.js @@ -453,7 +453,7 @@ function provision_fix_subobj(subobj, message, paths) return true; } -function provision_become_dc(subobj, message, paths, session_info) +function provision_become_dc(subobj, message, erase, paths, session_info) { var lp = loadparm_init(); var sys = sys_init(); @@ -478,8 +478,10 @@ function provision_become_dc(subobj, message, paths, session_info) message("Setting up " + paths.samdb + " rootDSE\n"); setup_add_ldif("provision_rootdse_add.ldif", info, samdb, false); - message("Erasing data from partitions\n"); - ldb_erase_partitions(info, samdb, undefined); + if (erase) { + 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); |