summaryrefslogtreecommitdiff
path: root/source4/setup/provision
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-01-02 11:50:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:35:54 -0500
commit9fc3e164df198f92134acb2b16c1a3236f680583 (patch)
treeba52683e841b9621ce0a53b8d2d87f8f55e3909e /source4/setup/provision
parent3a6da3c60f07c6568537ba064ba7be80cf1d47f1 (diff)
downloadsamba-9fc3e164df198f92134acb2b16c1a3236f680583.tar.gz
samba-9fc3e164df198f92134acb2b16c1a3236f680583.tar.bz2
samba-9fc3e164df198f92134acb2b16c1a3236f680583.zip
r20468: Patch from Martin Kuehl <kuehl@univention.de> to make it easier to load
into an exsting LDAP server. (Allow some parts to pre-exist, and try to blow away less data). Andrew Bartlett (This used to be commit 99faff0ad8fa12d596c599064a0125a6b3365134)
Diffstat (limited to 'source4/setup/provision')
-rwxr-xr-xsource4/setup/provision9
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/setup/provision b/source4/setup/provision
index 229deb1622..163cb93274 100755
--- a/source4/setup/provision
+++ b/source4/setup/provision
@@ -28,9 +28,9 @@ options = GetOptions(ARGV,
'wheel=s',
'users=s',
'quiet',
- 'blank',
+ 'blank',
'ldap-base',
- 'ldap-backend=s');
+ 'ldap-backend=s');
if (options == undefined) {
println("Failed to parse options");
@@ -43,7 +43,7 @@ libinclude("provision.js");
/*
print a message if quiet is not set
*/
-function message()
+function message()
{
if (options["quiet"] == undefined) {
print(vsprintf(arguments));
@@ -117,6 +117,7 @@ if (options["ldap-backend"] != undefined) {
var blank = (options["blank"] != undefined);
var ldapbase = (options["ldap-base"] != undefined);
+var ldapbackend = (options["ldap-backend"] != undefined);
if (!provision_validate(subobj, message)) {
return -1;
@@ -130,7 +131,7 @@ message("Using administrator password: %s\n", subobj.ADMINPASS);
if (ldapbase) {
provision_ldapbase(subobj, message, paths);
} else {
- provision(subobj, message, blank, paths, system_session, creds);
+ provision(subobj, message, blank, paths, system_session, creds, ldapbackend);
provision_dns(subobj, message, paths, system_session, creds);
}
message("All OK\n");