Merge pull request #325 from sroeder/master
Added @ character to the list of valid username characters. * This allows login with "bad" username, even if shellinabox is configured to run with SSH service. For LOGIN service this was always possible.
This commit is contained in:
commit
f8f937608c
1 changed files with 1 additions and 1 deletions
|
@ -1019,7 +1019,7 @@ static pam_handle_t *internalLogin(struct Service *service, struct Utmp *utmp,
|
||||||
if (!((ch >= '0' && ch <= '9') ||
|
if (!((ch >= '0' && ch <= '9') ||
|
||||||
(ch >= 'A' && ch <= 'Z') ||
|
(ch >= 'A' && ch <= 'Z') ||
|
||||||
(ch >= 'a' && ch <= 'z') ||
|
(ch >= 'a' && ch <= 'z') ||
|
||||||
ch == '-' || ch == '_' || ch == '.')) {
|
ch == '-' || ch == '_' || ch == '.' || ch == '@')) {
|
||||||
goto invalid_user_name;
|
goto invalid_user_name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue