mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Don't uppercase the username and domain in a session setup.
This commit is contained in:
parent
066b163bde
commit
0ad19825df
@ -2758,7 +2758,6 @@ static void remember_query_host(const char *arg,
|
|||||||
got_pass = True;
|
got_pass = True;
|
||||||
memset(strchr_m(getenv("USER"),'%')+1,'X',strlen(password));
|
memset(strchr_m(getenv("USER"),'%')+1,'X',strlen(password));
|
||||||
}
|
}
|
||||||
strupper(username);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* modification to support PASSWD environmental var
|
/* modification to support PASSWD environmental var
|
||||||
@ -2775,7 +2774,6 @@ static void remember_query_host(const char *arg,
|
|||||||
|
|
||||||
if (*username == 0 && getenv("LOGNAME")) {
|
if (*username == 0 && getenv("LOGNAME")) {
|
||||||
pstrcpy(username,getenv("LOGNAME"));
|
pstrcpy(username,getenv("LOGNAME"));
|
||||||
strupper(username);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*username == 0) {
|
if (*username == 0) {
|
||||||
|
@ -317,8 +317,8 @@ static BOOL cli_session_setup_nt1(struct cli_state *cli, char *user,
|
|||||||
p = smb_buf(cli->outbuf);
|
p = smb_buf(cli->outbuf);
|
||||||
memcpy(p,pword,passlen); p += passlen;
|
memcpy(p,pword,passlen); p += passlen;
|
||||||
memcpy(p,ntpword,ntpasslen); p += ntpasslen;
|
memcpy(p,ntpword,ntpasslen); p += ntpasslen;
|
||||||
p += clistr_push(cli, p, user, -1, STR_TERMINATE|STR_UPPER);
|
p += clistr_push(cli, p, user, -1, STR_TERMINATE);
|
||||||
p += clistr_push(cli, p, workgroup, -1, STR_TERMINATE|STR_UPPER);
|
p += clistr_push(cli, p, workgroup, -1, STR_TERMINATE);
|
||||||
p += clistr_push(cli, p, "Unix", -1, STR_TERMINATE);
|
p += clistr_push(cli, p, "Unix", -1, STR_TERMINATE);
|
||||||
p += clistr_push(cli, p, "Samba", -1, STR_TERMINATE);
|
p += clistr_push(cli, p, "Samba", -1, STR_TERMINATE);
|
||||||
cli_setup_bcc(cli, p);
|
cli_setup_bcc(cli, p);
|
||||||
|
Loading…
Reference in New Issue
Block a user