summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-09-23 21:24:31 +0000
committerTim Potter <tpot@samba.org>2002-09-23 21:24:31 +0000
commitaf78eafa6cd8cf5e43c0c4104a3944855e35743f (patch)
treea631006472230706825b0ac2728edc229019e354 /source3
parent2b6057ef1f9fbfb583a2f77e3b5d3aee2c115fe4 (diff)
downloadsamba-af78eafa6cd8cf5e43c0c4104a3944855e35743f.tar.gz
samba-af78eafa6cd8cf5e43c0c4104a3944855e35743f.tar.bz2
samba-af78eafa6cd8cf5e43c0c4104a3944855e35743f.zip
Don't uppercase the username and domain in a session setup.
(This used to be commit 0ad19825df318030b1772404570cd993fe49e40a)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c2
-rw-r--r--source3/libsmb/cliconnect.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 7afd8f25bc..eb6b572760 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2758,7 +2758,6 @@ static void remember_query_host(const char *arg,
got_pass = True;
memset(strchr_m(getenv("USER"),'%')+1,'X',strlen(password));
}
- strupper(username);
}
/* modification to support PASSWD environmental var
@@ -2775,7 +2774,6 @@ static void remember_query_host(const char *arg,
if (*username == 0 && getenv("LOGNAME")) {
pstrcpy(username,getenv("LOGNAME"));
- strupper(username);
}
if (*username == 0) {
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 298b1e52b6..62acccdfb7 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -317,8 +317,8 @@ static BOOL cli_session_setup_nt1(struct cli_state *cli, char *user,
p = smb_buf(cli->outbuf);
memcpy(p,pword,passlen); p += passlen;
memcpy(p,ntpword,ntpasslen); p += ntpasslen;
- p += clistr_push(cli, p, user, -1, STR_TERMINATE|STR_UPPER);
- p += clistr_push(cli, p, workgroup, -1, STR_TERMINATE|STR_UPPER);
+ p += clistr_push(cli, p, user, -1, STR_TERMINATE);
+ p += clistr_push(cli, p, workgroup, -1, STR_TERMINATE);
p += clistr_push(cli, p, "Unix", -1, STR_TERMINATE);
p += clistr_push(cli, p, "Samba", -1, STR_TERMINATE);
cli_setup_bcc(cli, p);