summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-08-14 14:51:44 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-08-17 09:51:01 +1000
commit2af06385ed4334c37191e9ccb49e86432531ff01 (patch)
tree1285b44ad457b90d3e07f2cb423ac5cf46fcc04b
parent84ee0af244887db2f0a11259484fa9c9797cc750 (diff)
downloadsamba-2af06385ed4334c37191e9ccb49e86432531ff01.tar.gz
samba-2af06385ed4334c37191e9ccb49e86432531ff01.tar.bz2
samba-2af06385ed4334c37191e9ccb49e86432531ff01.zip
s4:provision Make sure that we don't use Kerberos to our LDAP backend
This makes no sense, and just causes trouble - we are aiming for DIGEST-MD5 or NTLM. Andrew Bartlett
-rw-r--r--source4/scripting/python/samba/provision.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index e800b7ccaa..5825e4726a 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -39,7 +39,7 @@ import samba
import subprocess
import shutil
-from credentials import Credentials
+from credentials import Credentials, DONT_USE_KERBEROS
from auth import system_session
from samba import version, Ldb, substitute_var, valid_netbios_name, check_all_substituted, \
DS_BEHAVIOR_WIN2008
@@ -1348,6 +1348,8 @@ class ProvisionBackend(object):
self.credentials = Credentials()
self.credentials.guess(lp)
+ #Kerberos to an ldapi:// backend makes no sense
+ self.credentials.set_kerberos_state(DONT_USE_KERBEROS)
self.ldap_backend_type = ldap_backend_type
if ldap_backend_type == "fedora-ds":