From 29e68e9d79dd41e9be0d1d731e132355d1ea8ba6 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Wed, 26 Oct 2011 15:49:47 +0000 Subject: - Add ALLOW_BLANK_PASSWORD option - Don't reject blank-password logins via public key --HG-- extra : convert_revision : 2d4bb3ecb013a7be47a7b470fc6b23e653a43dfb --- svr-auth.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'svr-auth.c') diff --git a/svr-auth.c b/svr-auth.c index 87e3c5e..de254ea 100644 --- a/svr-auth.c +++ b/svr-auth.c @@ -249,15 +249,6 @@ static int checkusername(unsigned char *username, unsigned int userlen) { return DROPBEAR_FAILURE; } - /* check for an empty password */ - if (ses.authstate.pw_passwd[0] == '\0') { - TRACE(("leave checkusername: empty pword")) - dropbear_log(LOG_WARNING, "User '%s' has blank password, rejected", - ses.authstate.pw_name); - send_msg_userauth_failure(0, 1); - return DROPBEAR_FAILURE; - } - TRACE(("shell is %s", ses.authstate.pw_shell)) /* check that the shell is set */ -- cgit v1.2.3