summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-07-15 18:44:58 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-07-15 18:44:58 +1000
commite400b3ec4e7f32406ed8803ed22612033511d99a (patch)
treeea33070705ea214a74e483e0a0b4698ae1a63f20 /source4/scripting/python
parent0f1eea267257eff0d75a702ee0793a86834fb76a (diff)
downloadsamba-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.py2
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(),