mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
make sure that if kerberos fails we can fall back on NTLMSSP for SASL
This commit is contained in:
parent
7501b2a518
commit
69dba08c40
@ -196,8 +196,11 @@ static ADS_STATUS ads_sasl_spnego_bind(ADS_STRUCT *ads)
|
|||||||
status = ads_sasl_spnego_krb5_bind(ads, principal);
|
status = ads_sasl_spnego_krb5_bind(ads, principal);
|
||||||
if (ADS_ERR_OK(status))
|
if (ADS_ERR_OK(status))
|
||||||
return status;
|
return status;
|
||||||
if (ads_kinit_password(ads) == 0)
|
if (ads_kinit_password(ads) == 0) {
|
||||||
return ads_sasl_spnego_krb5_bind(ads, principal);
|
status = ads_sasl_spnego_krb5_bind(ads, principal);
|
||||||
|
}
|
||||||
|
if (ADS_ERR_OK(status))
|
||||||
|
return status;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user