summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-26 23:04:19 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-26 23:04:19 +0000
commit9b683054751866af4fb2ac79c092392e31effaff (patch)
treee9648db6efbff69ff731c1df466f59fd21cc853e /source3/client
parent5e3bc7875656362770b0c9a2a45d2f83c985c6e5 (diff)
downloadsamba-9b683054751866af4fb2ac79c092392e31effaff.tar.gz
samba-9b683054751866af4fb2ac79c092392e31effaff.tar.bz2
samba-9b683054751866af4fb2ac79c092392e31effaff.zip
whoa. _major_ restructure of rpcclient. fixed some buuugs, created a few.
found out that getopt() _must_ have optind set to 0 before reuse. still haven't decided what to do with the net* api yet... (This used to be commit 29c480085e786905bfd92ea3cd93658f94e96e47)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 8d1e73c5c2..e27e169405 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -1846,8 +1846,8 @@ struct cli_state *do_connect(char *server, char *share, int smb_port)
make_nmb_name(&called , server, name_type, "");
make_nmb_name(&stupid_smbserver_called , "*SMBSERVER", 0x20, scope);
- fstrcpy(smb_cli->user_name, username);
- fstrcpy(smb_cli->domain, workgroup);
+ fstrcpy(smb_cli->usr.user_name, username);
+ fstrcpy(smb_cli->usr.domain, workgroup);
ip = ipzero;
if (have_ip) ip = dest_ip;
@@ -1862,17 +1862,17 @@ struct cli_state *do_connect(char *server, char *share, int smb_port)
{
if (password[0] == 0)
{
- pwd_set_nullpwd(&(smb_cli->pwd));
+ pwd_set_nullpwd(&(smb_cli->usr.pwd));
}
else
{
/* generate 16 byte hashes */
- pwd_make_lm_nt_16(&(smb_cli->pwd), password);
+ pwd_make_lm_nt_16(&(smb_cli->usr.pwd), password);
}
}
else
{
- pwd_read(&(smb_cli->pwd), "Password:", True);
+ pwd_read(&(smb_cli->usr.pwd), "Password:", True);
}
/* paranoia: destroy the local copy of the password */