mirror of
https://github.com/samba-team/samba.git
synced 2025-03-05 20:58:40 +03:00
Fix asking for credentials for non-LDAP provisions.
(This used to be commit 78416f4840df4f8d1f9cc5e46a48b19c86888050)
This commit is contained in:
parent
0f1eea2672
commit
e400b3ec4e
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user