summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
authorCorinna Vinschen <vinschen@redhat.com>2019-02-20 13:41:24 +0100
committerDarren Tucker <dtucker@dtucker.net>2019-02-22 15:04:16 +1100
commitf02afa350afac1b2f2d1413259a27a4ba1e2ca24 (patch)
treec568d26fa3747cfe35d86b46df84d5bcc0417245 /auth.c
parent4c55b674835478eb80a1a7aeae588aa654e2a433 (diff)
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.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/auth.c b/auth.c
index 62c58e72f..332b6220c 100644
--- a/auth.c
+++ b/auth.c
@@ -584,19 +584,6 @@ getpwnamallow(struct ssh *ssh, const char *user)
584#if defined(_AIX) && defined(HAVE_SETAUTHDB) 584#if defined(_AIX) && defined(HAVE_SETAUTHDB)
585 aix_restoreauthdb(); 585 aix_restoreauthdb();
586#endif 586#endif
587#ifdef HAVE_CYGWIN
588 /*
589 * Windows usernames are case-insensitive. To avoid later problems
590 * when trying to match the username, the user is only allowed to
591 * login if the username is given in the same case as stored in the
592 * user database.
593 */
594 if (pw != NULL && strcmp(user, pw->pw_name) != 0) {
595 logit("Login name %.100s does not match stored username %.100s",
596 user, pw->pw_name);
597 pw = NULL;
598 }
599#endif
600 if (pw == NULL) { 587 if (pw == NULL) {
601 logit("Invalid user %.100s from %.100s port %d", 588 logit("Invalid user %.100s from %.100s port %d",
602 user, ssh_remote_ipaddr(ssh), ssh_remote_port(ssh)); 589 user, ssh_remote_ipaddr(ssh), ssh_remote_port(ssh));