view images/static-tools/patches/dropbear-fixnopasswd.patch @ 11:a47a5504bbd5

Dropbear should allow you to login via public/private key even when user has not password.
author Rob Landley <rob@landley.net>
date Sat, 29 Oct 2011 12:41:37 -0500
parents
children
line wrap: on
line source

No password is no reason to prevent key-based logins.

diff -ru dropbear.new/svr-auth.c dropbear/svr-auth.c
--- dropbear.new/svr-auth.c	2011-10-11 09:50:22.047129393 -0500
+++ dropbear/svr-auth.c	2011-03-02 07:23:36.000000000 -0600
@@ -249,7 +249,7 @@
 		return DROPBEAR_FAILURE;
 	}
 
-	/* check for an empty password */
+	/* 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",
@@ -257,6 +257,7 @@
 		send_msg_userauth_failure(0, 1);
 		return DROPBEAR_FAILURE;
 	}
+*/
 
 	TRACE(("shell is %s", ses.authstate.pw_shell))