summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-08-14 10:28:56 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-08-17 09:51:00 +1000
commit84ee0af244887db2f0a11259484fa9c9797cc750 (patch)
tree395a0d6677c623998944a1ea7c512bcb1b6ed1d5 /source4/scripting/python
parent5255ba3c4f50cf9560b15ecf026ac1e54fe21d8e (diff)
downloadsamba-84ee0af244887db2f0a11259484fa9c9797cc750.tar.gz
samba-84ee0af244887db2f0a11259484fa9c9797cc750.tar.bz2
samba-84ee0af244887db2f0a11259484fa9c9797cc750.zip
s4:provison Print the LDAP backend admin username/password
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/provision.py20
1 files changed, 14 insertions, 6 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index bcb6566998..e800b7ccaa 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -1204,20 +1204,28 @@ def provision(setup_dir, message, session_info,
setup_file(setup_path("ldap_backend_startup.sh"), paths.ldapdir + "/ldap_backend_startup.sh", {
"SLAPD_COMMAND" : slapd_command})
+
create_phpldapadmin_config(paths.phpldapadminconfig, setup_path,
ldapi_url)
message("Please install the phpLDAPadmin configuration located at %s into /etc/phpldapadmin/config.php" % paths.phpldapadminconfig)
message("Once the above files are installed, your Samba4 server will be ready to use")
- message("Server Role: %s" % serverrole)
- message("Hostname: %s" % names.hostname)
- message("NetBIOS Domain: %s" % names.domain)
- message("DNS Domain: %s" % names.dnsdomain)
- message("DOMAIN SID: %s" % str(domainsid))
+ message("Server Role: %s" % serverrole)
+ message("Hostname: %s" % names.hostname)
+ message("NetBIOS Domain: %s" % names.domain)
+ message("DNS Domain: %s" % names.dnsdomain)
+ message("DOMAIN SID: %s" % str(domainsid))
if samdb_fill == FILL_FULL:
- message("Admin password: %s" % adminpass)
+ message("Admin password: %s" % adminpass)
+ if provision_backend:
+ if provision_backend.credentials.get_bind_dn() is not None:
+ message("LDAP Backend Admin DN: %s" % provision_backend.credentials.get_bind_dn())
+ else:
+ message("LDAP Admin User: %s" % provision_backend.credentials.get_username())
+ message("LDAP Admin Password: %s" % provision_backend.credentials.get_password())
+
result = ProvisionResult()
result.domaindn = domaindn
result.paths = paths