summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-07-05 01:45:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:59:06 -0500
commit97172e11204b2863ab1e4021aea3c40668d33aef (patch)
tree61a2a80275ba652c1924680c968bba28a0a2743f /source4
parentc37cfae81e6f87feecb0737cb7e646c9a7da1114 (diff)
downloadsamba-97172e11204b2863ab1e4021aea3c40668d33aef.tar.gz
samba-97172e11204b2863ab1e4021aea3c40668d33aef.tar.bz2
samba-97172e11204b2863ab1e4021aea3c40668d33aef.zip
r23716: Clarify LDAP Manager DN and fix slapd startup syntax.
Andrew Bartlett (This used to be commit 17dad5d8c345c2c3a7643bff7a43473339a22d40)
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/libjs/provision.js4
-rw-r--r--source4/setup/fedorads.inf4
-rwxr-xr-xsource4/setup/provision-backend4
-rw-r--r--source4/setup/slapd.conf4
4 files changed, 9 insertions, 7 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js
index 2ef0747f0d..4317a37a54 100644
--- a/source4/scripting/libjs/provision.js
+++ b/source4/scripting/libjs/provision.js
@@ -464,6 +464,8 @@ function provision_fix_subobj(subobj, paths)
var ldap_path_list = split("/", paths.ldapdir);
subobj.LDAPI_URI = "ldapi://" + join("%2F", ldap_path_list) + "%2Fldapi";
+ subobj.LDAP_MANAGERDN = "cn=Manager," + subobj.DOMAINDN;
+
return true;
}
@@ -852,7 +854,7 @@ function provision_guess()
subobj.KRBTGTPASS = randpass(12);
subobj.MACHINEPASS = randpass(12);
subobj.ADMINPASS = randpass(12);
- subobj.LDAPMANAGERPASS = randpass(12);
+ subobj.LDAP_MANAGERPASS = randpass(12);
subobj.DEFAULTSITE = "Default-First-Site-Name";
subobj.NEWGUID = randguid;
subobj.NTTIME = nttime;
diff --git a/source4/setup/fedorads.inf b/source4/setup/fedorads.inf
index 785e65ce56..43d02da206 100644
--- a/source4/setup/fedorads.inf
+++ b/source4/setup/fedorads.inf
@@ -6,8 +6,8 @@ ServerRoot= ${LDAPDIR}
[slapd]
ldapifilepath=${LDAPDIR}/ldapi
Suffix= ${DOMAINDN}
-RootDN= cn=Manager,${DOMAINDN}
-RootDNPwd= ${LDAPMANAGERPASS}
+RootDN= ${LDAP_MANAGERDN}
+RootDNPwd= ${LDAP_MANAGERPASS}
ServerIdentifier= samba4
${SERVERPORT}
diff --git a/source4/setup/provision-backend b/source4/setup/provision-backend
index b36eed5343..5a3018b724 100755
--- a/source4/setup/provision-backend
+++ b/source4/setup/provision-backend
@@ -90,7 +90,7 @@ for (r in options) {
var paths = provision_default_paths(subobj);
provision_fix_subobj(subobj, paths);
message("Provisioning LDAP backend for %s in realm %s into %s\n", subobj.HOSTNAME, subobj.REALM, subobj.LDAPDIR);
-message("Using LDAP Manager password: %s\n", subobj.LDAPMANAGERPASS);
+message("Using %s password: %s\n", subobj.LDAP_MANAGERDN, subobj.LDAP_MANAGERPASS);
var tmp_schema_ldb = subobj.LDAPDIR + "/schema-tmp.ldb";
sys.mkdir(subobj.LDAPDIR, 0700);
@@ -137,7 +137,7 @@ if (options["ldap-backend-type"] == "fedora-ds") {
setup_file("DB_CONFIG", message, subobj.LDAPDBDIR + "/DB_CONFIG", subobj);
if (options["ldap-backend-port"] != undefined) {
message("\nStart slapd with: \n");
- slapd_command = "slapd -f " + subobj.LDAPDIR + "/slapd.conf -h ldap://0.0.0.0:" + options["ldap-backend-port"] + " -h " + subobj.LDAPI_URI;
+ slapd_command = "slapd -f " + subobj.LDAPDIR + "/slapd.conf -h \"ldap://0.0.0.0:" + options["ldap-backend-port"] + " " + subobj.LDAPI_URI "\"";
} else {
slapd_command = "slapd -f " + subobj.LDAPDIR + "/slapd.conf -h " + subobj.LDAPI_URI;
}
diff --git a/source4/setup/slapd.conf b/source4/setup/slapd.conf
index 770c688f35..b39e3d5cfb 100644
--- a/source4/setup/slapd.conf
+++ b/source4/setup/slapd.conf
@@ -47,8 +47,8 @@ index nETBIOSName eq pres
database bdb
suffix ${DOMAINDN}
-rootdn cn=Manager,${DOMAINDN}
-rootpw ${LDAPMANAGERPASS}
+rootdn ${LDAP_MANAGERDN}
+rootpw ${LDAP_MANAGERPASS}
directory ${LDAPDIR}/db/user
index objectClass eq
index samAccountName eq