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

Attempt to fix bug 5616

We were calculating the session key but did not return it to the caller...
(cherry picked from commit 8ab79b1d00)
(This used to be commit b63a6a1fd6)
This commit is contained in:
Volker Lendecke 2008-07-28 17:52:35 +02:00 committed by Volker Lendecke
parent d6b7f800d3
commit 91df5551a4

View File

@ -333,8 +333,6 @@ NTSTATUS rpccli_netlogon_sam_network_logon(struct rpc_pipe_client *cli,
union netr_Validation validation;
struct netr_ChallengeResponse lm;
struct netr_ChallengeResponse nt;
struct netr_UserSessionKey user_session_key;
struct netr_LMSessionKey lmsesskey;
*info3 = NULL;
@ -409,15 +407,14 @@ NTSTATUS rpccli_netlogon_sam_network_logon(struct rpc_pipe_client *cli,
return result;
}
user_session_key = validation.sam3->base.key;
lmsesskey = validation.sam3->base.LMSessKey;
if (memcmp(zeros, user_session_key.key, 16) != 0) {
SamOEMhash(user_session_key.key, cli->dc->sess_key, 16);
if (memcmp(zeros, validation.sam3->base.key.key, 16) != 0) {
SamOEMhash(validation.sam3->base.key.key,
cli->dc->sess_key, 16);
}
if (memcmp(zeros, lmsesskey.key, 8) != 0) {
SamOEMhash(lmsesskey.key, cli->dc->sess_key, 8);
if (memcmp(zeros, validation.sam3->base.LMSessKey.key, 8) != 0) {
SamOEMhash(validation.sam3->base.LMSessKey.key,
cli->dc->sess_key, 8);
}
if (memcmp(zeros, ret_creds.cred.data, sizeof(ret_creds.cred.data)) != 0) {