summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_login.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_client/cli_login.c')
-rw-r--r--source3/rpc_client/cli_login.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/rpc_client/cli_login.c b/source3/rpc_client/cli_login.c
index 3ac4762628..a099936476 100644
--- a/source3/rpc_client/cli_login.c
+++ b/source3/rpc_client/cli_login.c
@@ -155,9 +155,10 @@ NT login - network.
password equivalents over the network. JRA.
****************************************************************************/
-BOOL cli_nt_login_network(struct cli_state *cli, char *domain, char *username,
- uint32 smb_userid_low, char lm_chal[8],
- char *lm_chal_resp, char *nt_chal_resp,
+BOOL cli_nt_login_network(struct cli_state *cli, const char *domain, const char *username,
+ uint32 smb_userid_low, const uchar lm_chal[8],
+ const uchar *lm_chal_resp, int lm_chal_resp_len,
+ const uchar *nt_chal_resp, int nt_chal_resp_len,
NET_ID_INFO_CTR *ctr, NET_USER_INFO_3 *user_info3)
{
DEBUG(5,("cli_nt_login_network: %d\n", __LINE__));
@@ -167,8 +168,9 @@ BOOL cli_nt_login_network(struct cli_state *cli, char *domain, char *username,
/* Create the structure needed for SAM logon. */
init_id_info2(&ctr->auth.id2, domain, 0, smb_userid_low, 0,
username, cli->clnt_name_slash,
- (uchar *)lm_chal, (uchar *)lm_chal_resp,
- (uchar *)nt_chal_resp);
+ lm_chal,
+ lm_chal_resp, lm_chal_resp_len,
+ nt_chal_resp, nt_chal_resp_len);
/* Send client sam-logon request - update credentials on success. */
return cli_net_sam_logon(cli, ctr, user_info3);