diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-07-28 20:26:14 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-07-28 20:26:14 +1000 |
commit | 08795db6d6af69442dfbfa7d39532e898d4c0ea6 (patch) | |
tree | 855d82e8039fc36a51cf70fc2f2f6543efaa4cb5 /source4 | |
parent | 45d60f5bd9be53ae4d4399664500709f1b2801a5 (diff) | |
download | samba-08795db6d6af69442dfbfa7d39532e898d4c0ea6.tar.gz samba-08795db6d6af69442dfbfa7d39532e898d4c0ea6.tar.bz2 samba-08795db6d6af69442dfbfa7d39532e898d4c0ea6.zip |
Make it even clearer what to do next in the LDAP backend setup
(This used to be commit bace931ad674b5071d53bf9c99c383f1d8957e1b)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/provision.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index 8437909da1..13329e8b10 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -1232,6 +1232,8 @@ def provision_backend(setup_dir=None, message=None, slapdcommand="Initailise Fedora DS with: setup-ds.pl --file=%s" % paths.fedoradsinf + ldapuser = "--simple-bind-dn=" + names.ldapmanagerdn + elif ldap_backend_type == "openldap": attrs = ["linkID", "lDAPDisplayName"] res = schemadb.search(expression="(&(&(linkID=*)(!(linkID:1.2.840.113556.1.4.803:=1)))(objectclass=attributeSchema))", base=names.schemadn, scope=SCOPE_SUBTREE, attrs=attrs) @@ -1293,6 +1295,8 @@ def provision_backend(setup_dir=None, message=None, slapdcommand="Start slapd with: slapd -f " + paths.ldapdir + "/slapd.conf -h " + ldapi_uri + server_port_string + ldapuser = "--username=samba-admin" + schema_command = "bin/ad2oLschema --option=convert:target=" + ldap_backend_type + " -I " + setup_path(mapping) + " -H tdb://" + schemadb_path + " -O " + os.path.join(paths.ldapdir, backend_schema) @@ -1311,7 +1315,7 @@ def provision_backend(setup_dir=None, message=None, message("LDAP admin password: %s" % adminpass) message(slapdcommand) - + message("Run provision with: --ldap-backend=ldapi --ldap-backend-type=" + ldap_backend_type + " --password=" + adminpass + " " + ldapuser) def create_phpldapadmin_config(path, setup_path, ldapi_uri): """Create a PHP LDAP admin configuration file. |