diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-09-28 14:42:32 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-09-28 14:42:32 +0000 |
commit | 4e73790e3a20be5c7bf8fa3b62d9d41ba246b59c (patch) | |
tree | e481224eb3a0b308b6069b283c4cb17b1bdb4e74 /source3/libads/sasl.c | |
parent | b1361525c69de00f79246c236ca1d2f0fca6c0e6 (diff) | |
download | samba-4e73790e3a20be5c7bf8fa3b62d9d41ba246b59c.tar.gz samba-4e73790e3a20be5c7bf8fa3b62d9d41ba246b59c.tar.bz2 samba-4e73790e3a20be5c7bf8fa3b62d9d41ba246b59c.zip |
Try to compile as much as possible with only ldap, but not kerberos.
(This used to be commit 9615ab10c006d8027f6a8b7dd3770eb77304dbdc)
Diffstat (limited to 'source3/libads/sasl.c')
-rw-r--r-- | source3/libads/sasl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libads/sasl.c b/source3/libads/sasl.c index f7dd01084a..aa7d99a5f7 100644 --- a/source3/libads/sasl.c +++ b/source3/libads/sasl.c @@ -20,7 +20,7 @@ #include "includes.h" -#ifdef HAVE_ADS +#ifdef HAVE_LDAP /* perform a LDAP/SASL/SPNEGO/NTLMSSP bind (just how many layers can @@ -190,10 +190,12 @@ static ADS_STATUS ads_sasl_spnego_bind(ADS_STRUCT *ads) } DEBUG(3,("got principal=%s\n", principal)); +#ifdef HAVE_KRB5 if (!(ads->auth.flags & ADS_AUTH_DISABLE_KERBEROS) && got_kerberos_mechanism && ads_kinit_password(ads) == 0) { return ads_sasl_spnego_krb5_bind(ads, principal); } +#endif /* lets do NTLMSSP ... this has the big advantage that we don't need to sync clocks, and we don't rely on special versions of the krb5 |