[PATCH 1/2] Revert "[auth.c] On Cygwin, refuse usernames that have differences in case"

Corinna Vinschen vinschen at redhat.com
Wed Feb 20 23:41:24 AEDT 2019


This reverts commit acc9b29486dfd649dfda474e5c1a03b317449f1c.

Signed-off-by: Corinna Vinschen <vinschen at redhat.com>
---
 auth.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/auth.c b/auth.c
index 62c58e72f01e..332b6220cd21 100644
--- a/auth.c
+++ b/auth.c
@@ -583,19 +583,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",
-- 
2.20.1



More information about the openssh-unix-dev mailing list