mirror of
https://github.com/samba-team/samba.git
synced 2025-01-04 05:18:06 +03:00
Prompted by RedHat bugzilla bug #77999, convert the user's username and
password from 'display' to 'unix' before we check them.
Andrew Bartlett
(This used to be commit 98a4ebf55c
)
This commit is contained in:
parent
97716129f5
commit
b7ee989aa8
@ -297,7 +297,8 @@ handle a http authentication line
|
||||
***************************************************************************/
|
||||
static BOOL cgi_handle_authorization(char *line)
|
||||
{
|
||||
char *p, *user, *user_pass;
|
||||
char *p;
|
||||
fstring user, user_pass;
|
||||
struct passwd *pass = NULL;
|
||||
|
||||
if (strncasecmp(line,"Basic ", 6)) {
|
||||
@ -314,9 +315,15 @@ static BOOL cgi_handle_authorization(char *line)
|
||||
goto err;
|
||||
}
|
||||
*p = 0;
|
||||
user = line;
|
||||
user_pass = p+1;
|
||||
|
||||
|
||||
convert_string(CH_DISPLAY, CH_UNIX,
|
||||
line, -1,
|
||||
user, sizeof(user));
|
||||
|
||||
convert_string(CH_DISPLAY, CH_UNIX,
|
||||
p+1, -1,
|
||||
user_pass, sizeof(user_pass));
|
||||
|
||||
/*
|
||||
* Try and get the user from the UNIX password file.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user