changeset 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 49b4a99dcf03
children afc6248ee1d6
files images/static-tools/patches/dropbear-fixnopasswd.patch
diffstat 1 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/images/static-tools/patches/dropbear-fixnopasswd.patch	Sat Oct 29 12:41:37 2011 -0500
@@ -0,0 +1,22 @@
+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))
+