diff options
author | Corinna Vinschen <vinschen@redhat.com> | 2019-02-20 13:41:24 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-02-22 15:04:16 +1100 |
commit | f02afa350afac1b2f2d1413259a27a4ba1e2ca24 (patch) | |
tree | c568d26fa3747cfe35d86b46df84d5bcc0417245 /auth.c | |
parent | 4c55b674835478eb80a1a7aeae588aa654e2a433 (diff) | |
download | openssh-git-f02afa350afac1b2f2d1413259a27a4ba1e2ca24.tar.gz |
Revert "[auth.c] On Cygwin, refuse usernames that have differences in case"
This reverts commit acc9b29486dfd649dfda474e5c1a03b317449f1c.
Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -584,19 +584,6 @@ getpwnamallow(struct ssh *ssh, const char *user) #if defined(_AIX) && defined(HAVE_SETAUTHDB) aix_restoreauthdb(); #endif -#ifdef HAVE_CYGWIN - /* - * Windows usernames are case-insensitive. To avoid later problems - * when trying to match the username, the user is only allowed to - * login if the username is given in the same case as stored in the - * user database. - */ - if (pw != NULL && strcmp(user, pw->pw_name) != 0) { - logit("Login name %.100s does not match stored username %.100s", - user, pw->pw_name); - pw = NULL; - } -#endif if (pw == NULL) { logit("Invalid user %.100s from %.100s port %d", user, ssh_remote_ipaddr(ssh), ssh_remote_port(ssh)); |