diff options
author | Luke Leighton <lkcl@samba.org> | 1998-04-01 21:31:06 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-04-01 21:31:06 +0000 |
commit | 92e2ecc3b56cdf07739773b5173a361bc78e5b50 (patch) | |
tree | aefb7a91e3a412654e0127c66876c1b484473893 /source3/rpc_client/cli_login.c | |
parent | c6db9717f66944a1321fa4093c0b136963785c0e (diff) | |
download | samba-92e2ecc3b56cdf07739773b5173a361bc78e5b50.tar.gz samba-92e2ecc3b56cdf07739773b5173a361bc78e5b50.tar.bz2 samba-92e2ecc3b56cdf07739773b5173a361bc78e5b50.zip |
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)
Diffstat (limited to 'source3/rpc_client/cli_login.c')
-rw-r--r-- | source3/rpc_client/cli_login.c | 18 |
1 files changed, 18 insertions, 0 deletions
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 @@ -294,6 +294,24 @@ void make_nt_login_interactive(NET_ID_INFO_CTR *ctr, } /**************************************************************************** + 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. ****************************************************************************/ BOOL do_nt_login(struct cli_state *cli, int t_idx, uint16 fnum, |