From 92e2ecc3b56cdf07739773b5173a361bc78e5b50 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Wed, 1 Apr 1998 21:31:06 +0000 Subject: cli_login.c : start to create the calls needed for client-side of "network" logins, which will be used for domain version of pass-through authentication. unfortunately, none of this code is called in the main branch, because smbclient BRANCH_NTDOM code isn't in use, yet! srv_netlog.c : fixed a problem with static net_login_network() which was being stubborn: the if() statement looked horrendous, so i split it into two if() statements, one to deal with the lm password; the other to deal with the nt password. the smb_password_check() functions should _not_ be called here, in case we decide to disable lm hashes for security reasons, just like nt does. so, we now get a response to the SAM_LOGON "network" call, but the connection is still dropped. a trace is needed from an nt server, which is why i started on the client-side code. see above, which is why i'm calling it a day :-) (This used to be commit 2c29a7d9cf2d8b35e4b6e37e5d24caa91af3a9be) --- source3/rpc_client/cli_login.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source3/rpc_client') diff --git a/source3/rpc_client/cli_login.c b/source3/rpc_client/cli_login.c index 2033ea437e..049dcf19e6 100644 --- a/source3/rpc_client/cli_login.c +++ b/source3/rpc_client/cli_login.c @@ -293,6 +293,24 @@ void make_nt_login_interactive(NET_ID_INFO_CTR *ctr, sess_key, lm_owf_user_pwd, nt_owf_user_pwd); } +/**************************************************************************** + make network sam login info + ****************************************************************************/ +void make_nt_login_network(NET_ID_INFO_CTR *ctr, + char *workgroup, char *myhostname, + uint32 smb_userid, char *username, + char lm_chal[8], char lm_chal_resp[24], char nt_chal_resp[24]) +{ + /* indicate a "network" login */ + ctr->switch_value = 2; + + /* this is used in both the SAM Logon and the SAM Logoff */ + make_id_info2(&ctr->auth.id2, workgroup, 0, + smb_userid, 0, + username, myhostname, + lm_chal, lm_chal_resp, nt_chal_resp); +} + /**************************************************************************** experimental nt login. ****************************************************************************/ -- cgit