summaryrefslogtreecommitdiff
path: root/source4/setup/provision
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-01-06 12:29:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:48 -0500
commit8f4dc51345dc48f5a6bfb1a49297f205ba53ef0a (patch)
treeae72d29358f8f06f2051f33d3891753965c547f2 /source4/setup/provision
parent8574fe2f8e07f15f129a7b53773c5a83278a9499 (diff)
downloadsamba-8f4dc51345dc48f5a6bfb1a49297f205ba53ef0a.tar.gz
samba-8f4dc51345dc48f5a6bfb1a49297f205ba53ef0a.tar.bz2
samba-8f4dc51345dc48f5a6bfb1a49297f205ba53ef0a.zip
r12739: Add support for using credentials in the provision process.
This should allow us to provision to a 'normal' LDAP server. Also add in 'session info' hooks (unused). Both of these need to be hooked in on the webserver. Andrew Bartlett (This used to be commit b349d2fbfefd0e0d4620b9e8e0c4136f900be1ae)
Diffstat (limited to 'source4/setup/provision')
-rwxr-xr-xsource4/setup/provision5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/setup/provision b/source4/setup/provision
index 44b7ee7a4f..51e62016a8 100755
--- a/source4/setup/provision
+++ b/source4/setup/provision
@@ -10,6 +10,7 @@ options = GetOptions(ARGV,
"POPT_AUTOHELP",
"POPT_COMMON_SAMBA",
"POPT_COMMON_VERSION",
+ "POPT_COMMON_CREDENTIALS",
'realm=s',
'domain=s',
'domain-guid=s',
@@ -112,9 +113,11 @@ if (!provision_validate(subobj, message)) {
return -1;
}
+var creds = options.get_credentials();
message("Provisioning for %s in realm %s\n", subobj.DOMAIN, subobj.REALM);
message("Using administrator password: %s\n", subobj.ADMINPASS);
-provision(subobj, message, blank, provision_default_paths(subobj));
+message("Credentials: %s\n", creds);
+provision(subobj, message, blank, provision_default_paths(subobj), NULL, creds);
message("All OK\n");
return 0;