summaryrefslogtreecommitdiff
path: root/source3/lib/cmd_interp.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2000-09-01 06:25:15 +0000
committerGerald Carter <jerry@samba.org>2000-09-01 06:25:15 +0000
commit08e73efdbc6db1438163eade03e31c9eb3c397d3 (patch)
treea290e9c522ffc9a771d394e3b5075bb5c1b129d1 /source3/lib/cmd_interp.c
parente5e43b553ee12af1add965804dc32d63f5fa2f1e (diff)
downloadsamba-08e73efdbc6db1438163eade03e31c9eb3c397d3.tar.gz
samba-08e73efdbc6db1438163eade03e31c9eb3c397d3.tar.bz2
samba-08e73efdbc6db1438163eade03e31c9eb3c397d3.zip
-U% should be an anonymous connection. Fixed bug where
the password was being set to "" instead of NULL. ..and yes Elrond, I'll merge this into TNG. P jerry (This used to be commit cc611ecc674832f7e7390b5e7ad6648c9d622e9e)
Diffstat (limited to 'source3/lib/cmd_interp.c')
-rw-r--r--source3/lib/cmd_interp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/cmd_interp.c b/source3/lib/cmd_interp.c
index d2aafa8b5d..60a3f248c3 100644
--- a/source3/lib/cmd_interp.c
+++ b/source3/lib/cmd_interp.c
@@ -1190,7 +1190,8 @@ static uint32 cmd_set(struct client_info *info, int argc, char *argv[])
return 0;
}
- if (cmd_set_options & CMD_NOPW) {
+ /* NULL password if specified or is username is empty */
+ if ((cmd_set_options & CMD_NOPW) || (strlen(usr.ntc.user_name) == 0)) {
set_user_password(&usr.ntc, True, NULL);
}
else