diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-01-17 12:00:27 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-01-17 12:00:27 +1100 |
commit | f1e177a7b8e660b245d5fb9b11a66b43c9b69784 (patch) | |
tree | 2bb54eec3573ae3d0fd5abf6aa34710431264ecb /source4/setup/provision | |
parent | b44f322f5d5940cb61b2f9c9e44fc25ed00e81be (diff) | |
download | samba-f1e177a7b8e660b245d5fb9b11a66b43c9b69784.tar.gz samba-f1e177a7b8e660b245d5fb9b11a66b43c9b69784.tar.bz2 samba-f1e177a7b8e660b245d5fb9b11a66b43c9b69784.zip |
provision: simplfy by removing old code to manually create baseDNs.
Previously, we would create the first record in the DB as an LDIF
file, with the expectation that the administrator would use slapadd to
create the database.
We now do everything over LDAP, which is far simpler, and allows the
LDB module chain to do its work, without special cases.
Also fix naming of the output schema when suggesting the comamnd line
to run ad2oLschema in provision-backend.
Andrew Bartlett
(This used to be commit e77375758d66e94e5e0b6e61a97c9281c3d9c71f)
Diffstat (limited to 'source4/setup/provision')
-rwxr-xr-x | source4/setup/provision | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/setup/provision b/source4/setup/provision index ce1e8a6b4f..8b24c51040 100755 --- a/source4/setup/provision +++ b/source4/setup/provision @@ -123,7 +123,6 @@ for (r in options) { } var blank = (options["blank"] != undefined); -var ldapbase = (options["ldap-base"] != undefined); var ldapbackend = (options["ldap-backend"] != undefined); var ldapmodule = (options["ldap-module"] != undefined); var partitions_only = (options["partitions-only"] != undefined); @@ -161,10 +160,7 @@ var system_session = system_session(); 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); -if (ldapbase) { - provision_ldapbase(subobj, message, paths); - message("Please install the LDIF located in " + paths.ldap_basedn_ldif + ", " + paths.ldap_config_basedn_ldif + " and " + paths.ldap_schema_basedn_ldif + " into your LDAP server, and re-run with --ldap-backend=ldap://my.ldap.server\n"); -} else if (partitions_only) { +if (partitions_only) { provision_become_dc(subobj, message, false, paths, system_session); } else { provision(subobj, message, blank, paths, system_session, creds, ldapbackend); |