diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-11-10 00:35:04 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-11-10 00:35:04 +0000 |
commit | 69dba08c40c9739137b4f01d38be5228edc6dd6e (patch) | |
tree | 7f7d5b6b769d9cacb46c85ddc21a194b393ce008 /source/libads | |
parent | 7501b2a51835bae005d2ac015c3a428eaadce032 (diff) | |
download | samba-69dba08c40c9739137b4f01d38be5228edc6dd6e.tar.gz samba-69dba08c40c9739137b4f01d38be5228edc6dd6e.tar.xz samba-69dba08c40c9739137b4f01d38be5228edc6dd6e.zip |
make sure that if kerberos fails we can fall back on NTLMSSP for SASL
Diffstat (limited to 'source/libads')
-rw-r--r-- | source/libads/sasl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/libads/sasl.c b/source/libads/sasl.c index dacf8f7da80..16ad397d0e2 100644 --- a/source/libads/sasl.c +++ b/source/libads/sasl.c @@ -196,8 +196,11 @@ static ADS_STATUS ads_sasl_spnego_bind(ADS_STRUCT *ads) status = ads_sasl_spnego_krb5_bind(ads, principal); if (ADS_ERR_OK(status)) return status; - if (ads_kinit_password(ads) == 0) - return ads_sasl_spnego_krb5_bind(ads, principal); + if (ads_kinit_password(ads) == 0) { + status = ads_sasl_spnego_krb5_bind(ads, principal); + } + if (ADS_ERR_OK(status)) + return status; } #endif |