s4:provision Make sure that we don't use Kerberos to our LDAP backend
authorAndrew Bartlett <abartlet@samba.org>
Fri, 14 Aug 2009 04:51:44 +0000 (14:51 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 16 Aug 2009 23:51:01 +0000 (09:51 +1000)
This makes no sense, and just causes trouble - we are aiming for
DIGEST-MD5 or NTLM.

Andrew Bartlett

source4/scripting/python/samba/provision.py

index e800b7ccaa1cc28ab693ecd529cba726c112e56b..5825e4726a58d46a25feca7049c2fea5452d07a4 100644 (file)
@@ -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":