1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

Fix asking for credentials for non-LDAP provisions.

(This used to be commit 78416f4840)
This commit is contained in:
Andrew Bartlett 2008-07-15 18:44:58 +10:00
parent 0f1eea2672
commit e400b3ec4e

View File

@ -605,7 +605,7 @@ def setup_secretsdb(path, setup_path, session_info, credentials, lp):
lp=lp)
secrets_ldb.load_ldif_file_add(setup_path("secrets.ldif"))
if credentials.authentication_requested:
if credentials is not None and credentials.authentication_requested():
if credentials.get_bind_dn() is not None:
setup_add_ldif(secrets_ldb, setup_path("secrets_simple_ldap.ldif"), {
"LDAPMANAGERDN": credentials.get_bind_dn(),