diff options
author | Tim Potter <tpot@samba.org> | 2001-02-14 05:34:50 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-02-14 05:34:50 +0000 |
commit | 64172d82fcf1762a8bc938282919f9e3bd39675d (patch) | |
tree | d1aceb0a9bb586242c5a0eba36b5aacfe5b50ce2 /source3/rpc_client/cli_netlogon.c | |
parent | da20d4e5df3c908cc00bf31570892fa5f19853e7 (diff) | |
download | samba-64172d82fcf1762a8bc938282919f9e3bd39675d.tar.gz samba-64172d82fcf1762a8bc938282919f9e3bd39675d.tar.bz2 samba-64172d82fcf1762a8bc938282919f9e3bd39675d.zip |
Merge of i18n fixes from appliance branch. Samba can now talk to a network
with a PDC that has international netbios name and domain name. There's
still quite a bit of i18n stuff to fix though...
(This used to be commit 79045bd72ace9144e7dd73785b1d10a71b0d15aa)
Diffstat (limited to 'source3/rpc_client/cli_netlogon.c')
-rw-r--r-- | source3/rpc_client/cli_netlogon.c | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c index 3e24e74a59..209b38c4fa 100644 --- a/source3/rpc_client/cli_netlogon.c +++ b/source3/rpc_client/cli_netlogon.c @@ -73,7 +73,8 @@ BOOL cli_net_logon_ctrl2(struct cli_state *cli, uint32 status_level) global_myname, status_level)); /* store the parameters */ - init_q_logon_ctrl2(&q_l, cli->srv_name_slash, status_level); + init_q_logon_ctrl2(&q_l, unix_to_dos(cli->srv_name_slash,False), + status_level); /* turn parameters into data stream */ if(!net_io_q_logon_ctrl2("", &q_l, &buf, 0)) { @@ -131,12 +132,12 @@ BOOL cli_net_auth2(struct cli_state *cli, uint16 sec_chan, /* create and send a MSRPC command with api NET_AUTH2 */ DEBUG(4,("cli_net_auth2: srv:%s acct:%s sc:%x mc: %s chal %s neg: %x\n", - cli->srv_name_slash, cli->mach_acct, sec_chan, global_myname, - credstr(cli->clnt_cred.challenge.data), neg_flags)); + cli->srv_name_slash, cli->mach_acct, sec_chan, global_myname, + credstr(cli->clnt_cred.challenge.data), neg_flags)); /* store the parameters */ - init_q_auth_2(&q_a, cli->srv_name_slash, cli->mach_acct, sec_chan, global_myname, - &cli->clnt_cred.challenge, neg_flags); + init_q_auth_2(&q_a, unix_to_dos(cli->srv_name_slash,False), cli->mach_acct, + sec_chan, global_myname, &cli->clnt_cred.challenge, neg_flags); /* turn parameters into data stream */ if(!net_io_q_auth_2("", &q_a, &buf, 0)) { @@ -224,7 +225,8 @@ BOOL cli_net_req_chal(struct cli_state *cli, DOM_CHAL *clnt_chal, DOM_CHAL *srv_ cli->desthost, global_myname, credstr(clnt_chal->data))); /* store the parameters */ - init_q_req_chal(&q_c, cli->srv_name_slash, global_myname, clnt_chal); + init_q_req_chal(&q_c, unix_to_dos(cli->srv_name_slash,False), + global_myname, clnt_chal); /* turn parameters into data stream */ if(!net_io_q_req_chal("", &q_c, &buf, 0)) { @@ -289,8 +291,9 @@ BOOL cli_net_srv_pwset(struct cli_state *cli, uint8 hashed_mach_pwd[16]) credstr(new_clnt_cred.challenge.data), new_clnt_cred.timestamp.time)); /* store the parameters */ - init_q_srv_pwset(&q_s, cli->srv_name_slash, cli->mach_acct, sec_chan_type, - global_myname, &new_clnt_cred, (char *)hashed_mach_pwd); + init_q_srv_pwset(&q_s, unix_to_dos(cli->srv_name_slash,False), + cli->mach_acct, sec_chan_type, global_myname, + &new_clnt_cred, (char *)hashed_mach_pwd); /* turn parameters into data stream */ if(!net_io_q_srv_pwset("", &q_s, &buf, 0)) { @@ -365,8 +368,9 @@ BOOL cli_net_sam_logon(struct cli_state *cli, NET_ID_INFO_CTR *ctr, /* store the parameters */ q_s.validation_level = validation_level; - init_sam_info(&q_s.sam_id, cli->srv_name_slash, global_myname, - &new_clnt_cred, &dummy_rtn_creds, ctr->switch_value, ctr); + init_sam_info(&q_s.sam_id, unix_to_dos(cli->srv_name_slash,False), + global_myname, &new_clnt_cred, &dummy_rtn_creds, + ctr->switch_value, ctr); /* turn parameters into data stream */ if(!net_io_q_sam_logon("", &q_s, &buf, 0)) { @@ -451,8 +455,9 @@ BOOL cli_net_sam_logoff(struct cli_state *cli, NET_ID_INFO_CTR *ctr) memset(&dummy_rtn_creds, '\0', sizeof(dummy_rtn_creds)); - init_sam_info(&q_s.sam_id, cli->srv_name_slash, global_myname, - &new_clnt_cred, &dummy_rtn_creds, ctr->switch_value, ctr); + init_sam_info(&q_s.sam_id, unix_to_dos(cli->srv_name_slash,False), + global_myname, &new_clnt_cred, &dummy_rtn_creds, + ctr->switch_value, ctr); /* turn parameters into data stream */ if(!net_io_q_sam_logoff("", &q_s, &buf, 0)) { |