diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-07-15 18:44:58 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-07-15 18:44:58 +1000 |
commit | e400b3ec4e7f32406ed8803ed22612033511d99a (patch) | |
tree | ea33070705ea214a74e483e0a0b4698ae1a63f20 /source4/scripting/python | |
parent | 0f1eea267257eff0d75a702ee0793a86834fb76a (diff) | |
download | samba-e400b3ec4e7f32406ed8803ed22612033511d99a.tar.gz samba-e400b3ec4e7f32406ed8803ed22612033511d99a.tar.xz samba-e400b3ec4e7f32406ed8803ed22612033511d99a.zip |
Fix asking for credentials for non-LDAP provisions.
(This used to be commit 78416f4840df4f8d1f9cc5e46a48b19c86888050)
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/provision.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index f27cc17290f..6102dc77ffa 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -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(), |