summaryrefslogtreecommitdiff
path: root/source3/lib/cmd_interp.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2000-07-14 16:54:07 +0000
committerGerald Carter <jerry@samba.org>2000-07-14 16:54:07 +0000
commit02fd5b08b55b8ff60eb9f78d5d61f889d102cad0 (patch)
treebef82eaea92d19fce12c7b6fe3081f1309842a06 /source3/lib/cmd_interp.c
parent7a88bb6baab1762798fcf4b6d1a17c59e5d98f83 (diff)
downloadsamba-02fd5b08b55b8ff60eb9f78d5d61f889d102cad0.tar.gz
samba-02fd5b08b55b8ff60eb9f78d5d61f889d102cad0.tar.bz2
samba-02fd5b08b55b8ff60eb9f78d5d61f889d102cad0.zip
Fixed a bug in cmd_interp.c where if user%pass was entered on
the command line, the password would still be cached in memory in plain text for the lifetime of the rpcclient command line session. removed loopback connection functions from msrpc-client.c since we don't support that in the server code now anyways. simplify, simplify, ... --jerry (This used to be commit 8599e1bc394b1caee2483ec72d439a34d3f30629)
Diffstat (limited to 'source3/lib/cmd_interp.c')
-rw-r--r--source3/lib/cmd_interp.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/source3/lib/cmd_interp.c b/source3/lib/cmd_interp.c
index 5dbb4f9074..201a244385 100644
--- a/source3/lib/cmd_interp.c
+++ b/source3/lib/cmd_interp.c
@@ -1011,13 +1011,7 @@ static uint32 cmd_set(struct client_info *info, int argc, char *argv[])
*lp = 0;
pstrcpy(password, lp + 1);
cmd_set_options |= CMD_PASS;
- memset(strchr(optarg, '%') + 1, 'X',
- strlen(password));
- }
- if (usr.ntc.user_name[0] == 0
- && password[0] == 0)
- {
- cmd_set_options |= CMD_NOPW;
+ memset(lp+1, 'X', strlen(password));
}
break;
}
@@ -1195,7 +1189,8 @@ static uint32 cmd_set(struct client_info *info, int argc, char *argv[])
{
report(out_hnd, "FAILED\n");
}
- usr_creds = NULL;
+ /* ???? --jerry
+ usr_creds = NULL; */
}
if (cmd_str != NULL)
{