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

Avoid a segfault in net join when you have not done an kinit, and it's falling

back to NTLMSSP.  We need to get the password out of the user, and this
eventually does.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 0001-01-01 00:00:00 +00:00
parent 7ce782c20c
commit bb518a3bae

View File

@ -39,6 +39,11 @@ static ADS_STATUS ads_sasl_spnego_ntlmssp_bind(ADS_STRUCT *ads)
extern pstring global_myname;
int rc;
if (!ads->auth.password) {
/* No password, don't segfault below... */
return ADS_ERROR_NT(NT_STATUS_LOGON_FAILURE);
}
neg_flags = NTLMSSP_NEGOTIATE_UNICODE |
NTLMSSP_NEGOTIATE_128 |
NTLMSSP_NEGOTIATE_NTLM;