diff options
-rw-r--r-- | source4/scripting/libjs/provision.js | 4 | ||||
-rw-r--r-- | source4/setup/fedorads.inf | 4 | ||||
-rwxr-xr-x | source4/setup/provision-backend | 4 | ||||
-rw-r--r-- | source4/setup/slapd.conf | 4 |
4 files changed, 9 insertions, 7 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js index 2ef0747f0d2..4317a37a54e 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 785e65ce566..43d02da2062 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 b36eed5343f..5a3018b724d 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 770c688f358..b39e3d5cfbc 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 |