1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

make sure that if kerberos fails we can fall back on NTLMSSP for SASL

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent 7501b2a518
commit 69dba08c40

View File

@ -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