diff options
author | Luke Leighton <lkcl@samba.org> | 1999-06-29 18:47:06 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-06-29 18:47:06 +0000 |
commit | ab1a6aa42db5217f025941fb5107436556bc23b7 (patch) | |
tree | 1bc342852e54df8cbf73de89d49871b5c3d12091 /source/rpc_client/cli_pipe.c | |
parent | de9a38b0bcb5adcb6e502f2200d3e84bdcbdfc48 (diff) | |
download | samba-ab1a6aa42db5217f025941fb5107436556bc23b7.tar.gz samba-ab1a6aa42db5217f025941fb5107436556bc23b7.tar.xz samba-ab1a6aa42db5217f025941fb5107436556bc23b7.zip |
improving authentication code (tidyup).
Diffstat (limited to 'source/rpc_client/cli_pipe.c')
-rw-r--r-- | source/rpc_client/cli_pipe.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c index 482dbe71ceb..3ced2362818 100644 --- a/source/rpc_client/cli_pipe.c +++ b/source/rpc_client/cli_pipe.c @@ -502,7 +502,8 @@ static BOOL create_rpc_bind_resp(struct pwd_info *pwd, prs_struct *auth_resp) { unsigned char lm_owf[24]; - unsigned char nt_owf[24]; + unsigned char nt_owf[128]; + size_t nt_owf_len; RPC_HDR hdr; RPC_HDR_AUTHA hdr_autha; RPC_AUTH_VERIFIER auth_verifier; @@ -518,10 +519,10 @@ static BOOL create_rpc_bind_resp(struct pwd_info *pwd, smb_io_rpc_auth_verifier("auth_verifier", &auth_verifier, auth_resp, 0); mem_realloc_data(auth_resp->data, auth_resp->offset); - pwd_get_lm_nt_owf(pwd, lm_owf, nt_owf); + pwd_get_lm_nt_owf(pwd, lm_owf, nt_owf, &nt_owf_len); make_rpc_auth_ntlmssp_resp(&ntlmssp_resp, - lm_owf, nt_owf, + lm_owf, nt_owf, nt_owf_len, domain, user_name, my_name, ntlmssp_cli_flgs); @@ -947,7 +948,7 @@ static BOOL rpc_pipe_bind(struct cli_state *cli, uint16 nt_pipe_fnum, rpc_call_id, &hdra, &hdr_autha, &auth_resp); - pwd_get_lm_nt_owf(&cli->pwd, lm_owf, NULL); + pwd_get_lm_nt_owf(&cli->pwd, lm_owf, NULL, NULL); pwd_get_lm_nt_16(&cli->pwd, lm_hash, NULL); NTLMSSPOWFencrypt(lm_hash, lm_owf, p24); { |