vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Jan F. Chadima c54a8b
diff -up openssh-5.3p1/auth1.c.skip-initial openssh-5.3p1/auth1.c
Jan F. Chadima c54a8b
--- openssh-5.3p1/auth1.c.skip-initial	2009-03-08 01:40:28.000000000 +0100
Jan F. Chadima c54a8b
+++ openssh-5.3p1/auth1.c	2009-10-02 13:55:00.000000000 +0200
Tomáš Mráz 09510a
@@ -244,7 +244,7 @@ do_authloop(Authctxt *authctxt)
Tomáš Mráz 09510a
 	    authctxt->valid ? "" : "invalid user ", authctxt->user);
cvsdist ffdec5
 
cvsdist ffdec5
 	/* If the user has no password, accept authentication immediately. */
cvsdist ffdec5
-	if (options.password_authentication &&
cvsdist ffdec5
+	if (options.permit_empty_passwd && options.password_authentication &&
cvsdist ffdec5
 #ifdef KRB5
cvsdist ffdec5
 	    (!options.kerberos_authentication || options.kerberos_or_local_passwd) &&
cvsdist ffdec5
 #endif
Jan F. Chadima c54a8b
diff -up openssh-5.3p1/auth2-none.c.skip-initial openssh-5.3p1/auth2-none.c
Jan F. Chadima c54a8b
--- openssh-5.3p1/auth2-none.c.skip-initial	2009-03-08 01:40:28.000000000 +0100
Jan F. Chadima c54a8b
+++ openssh-5.3p1/auth2-none.c	2009-10-02 13:56:21.000000000 +0200
Jan F. Chadima c54a8b
@@ -61,7 +61,7 @@ userauth_none(Authctxt *authctxt)
Jan F. Chadima c54a8b
 {
Jan F. Chadima c54a8b
 	none_enabled = 0;
Jan F. Chadima c54a8b
 	packet_check_eom();
cvsdist ffdec5
-	if (options.password_authentication)
cvsdist ffdec5
+	if (options.permit_empty_passwd && options.password_authentication)
cvsdist ffdec5
 		return (PRIVSEP(auth_password(authctxt, "")));
cvsdist ffdec5
 	return (0);
cvsdist ffdec5
 }