mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Fix #442 which Alexander considered a showstopper. Allow us to join mixed
mode domains. Jeremy.
This commit is contained in:
parent
c8bfde5be9
commit
c816aacefb
@ -547,14 +547,6 @@ static BOOL cli_session_setup_ntlmssp(struct cli_state *cli, const char *user,
|
||||
return False;
|
||||
}
|
||||
|
||||
ntlmssp_state->use_ntlmv2 = lp_client_ntlmv2_auth();
|
||||
|
||||
if (cli->sign_info.negotiated_smb_signing
|
||||
|| cli->sign_info.mandatory_signing) {
|
||||
ntlmssp_state->neg_flags |= NTLMSSP_NEGOTIATE_SIGN;
|
||||
ntlmssp_state->neg_flags |= NTLMSSP_NEGOTIATE_ALWAYS_SIGN;
|
||||
}
|
||||
|
||||
do {
|
||||
nt_status = ntlmssp_client_update(ntlmssp_state,
|
||||
blob_in, &blob_out);
|
||||
|
@ -692,6 +692,12 @@ NTSTATUS ntlmssp_client_start(NTLMSSP_CLIENT_STATE **ntlmssp_state)
|
||||
NTLMSSP_NEGOTIATE_NTLM |
|
||||
NTLMSSP_NEGOTIATE_NTLM2 |
|
||||
NTLMSSP_NEGOTIATE_KEY_EXCH |
|
||||
/*
|
||||
* We need to set this to allow a later SetPassword
|
||||
* via the SAMR pipe to succeed. Strange.... We could
|
||||
* also add NTLMSSP_NEGOTIATE_SEAL here. JRA.
|
||||
* */
|
||||
NTLMSSP_NEGOTIATE_SIGN |
|
||||
NTLMSSP_REQUEST_TARGET;
|
||||
|
||||
(*ntlmssp_state)->ref_count = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user