From c9ab92ffe523a7061e97668becf08705db1d744f Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Fri, 16 Oct 1998 00:59:22 +0000 Subject: rpcclient ntlogin test (This used to be commit f69cf05ff56dffb313304964d5bf5e5aee2f40a7) --- source3/rpc_server/srv_netlog.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'source3/rpc_server/srv_netlog.c') diff --git a/source3/rpc_server/srv_netlog.c b/source3/rpc_server/srv_netlog.c index 17a534b6f0..79a659faf8 100644 --- a/source3/rpc_server/srv_netlog.c +++ b/source3/rpc_server/srv_netlog.c @@ -506,6 +506,17 @@ static uint32 net_login_interactive(NET_ID_INFO_1 *id1, memcpy(lm_pwd, id1->lm_owf.data, 16); memcpy(nt_pwd, id1->nt_owf.data, 16); +#ifdef DEBUG_PASSWORD + DEBUG(100,("key:")); + dump_data(100, key, 16); + + DEBUG(100,("lm owf password:")); + dump_data(100, lm_pwd, 16); + + DEBUG(100,("nt owf password:")); + dump_data(100, nt_pwd, 16); +#endif + SamOEMhash((uchar *)lm_pwd, key, False); SamOEMhash((uchar *)nt_pwd, key, False); @@ -518,7 +529,7 @@ static uint32 net_login_interactive(NET_ID_INFO_1 *id1, #endif if (memcmp(smb_pass->smb_passwd , lm_pwd, 16) != 0 && - memcmp(smb_pass->smb_nt_passwd, nt_pwd, 16) != 0) + memcmp(smb_pass->smb_nt_passwd, nt_pwd, 16) != 0) { status = 0xC0000000 | NT_STATUS_WRONG_PASSWORD; } -- cgit