summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-02-16 00:24:43 +0000
committerJeremy Allison <jra@samba.org>2001-02-16 00:24:43 +0000
commit62dc55a43295e9e3abd9da13148b322b3aa89917 (patch)
treeb8d50b8d786eea9c0accdd8b3d1d07709bf84d95 /source3/rpc_client
parentddfac242e3c6b16b93a6fabf73f837cd5ffe216a (diff)
downloadsamba-62dc55a43295e9e3abd9da13148b322b3aa89917.tar.gz
samba-62dc55a43295e9e3abd9da13148b322b3aa89917.tar.bz2
samba-62dc55a43295e9e3abd9da13148b322b3aa89917.zip
configure configure.in smbd/posix_acls.c smbd/dosmode.c: Fix for zero permission W2K profiles.
libsmb/cliconnect.c rpc_client/cli_login.c smbd/reply.c: codepage fixes from Tim. Jeremy. (This used to be commit 3ded1e6bd5f79948e437ce5b1799705945f36ad2)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_login.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_login.c b/source3/rpc_client/cli_login.c
index 6600fac162..aaf4fe17aa 100644
--- a/source3/rpc_client/cli_login.c
+++ b/source3/rpc_client/cli_login.c
@@ -160,13 +160,23 @@ BOOL cli_nt_login_network(struct cli_state *cli, char *domain, char *username,
char *lm_chal_resp, char *nt_chal_resp,
NET_ID_INFO_CTR *ctr, NET_USER_INFO_3 *user_info3)
{
+ fstring dos_wksta_name, dos_username, dos_domain;
DEBUG(5,("cli_nt_login_network: %d\n", __LINE__));
/* indicate a "network" login */
ctr->switch_value = NET_LOGON_TYPE;
+ fstrcpy(dos_wksta_name, cli->clnt_name_slash);
+ unix_to_dos(dos_wksta_name, True);
+
+ fstrcpy(dos_username, username);
+ unix_to_dos(dos_username, True);
+
+ fstrcpy(dos_domain, domain);
+ unix_to_dos(dos_domain, True);
+
/* Create the structure needed for SAM logon. */
- init_id_info2(&ctr->auth.id2, domain, 0, smb_userid_low, 0,
- username, dos_to_unix(cli->clnt_name_slash, False),
+ init_id_info2(&ctr->auth.id2, dos_domain, 0, smb_userid_low, 0,
+ dos_username, dos_wksta_name,
(uchar *)lm_chal, (uchar *)lm_chal_resp,
(uchar *)nt_chal_resp);