Blame SOURCES/openssh-6.1p1-log-usepam-no.patch

f09e2e
diff -up openssh-6.1p1/sshd.c.log-usepam-no openssh-6.1p1/sshd.c
f09e2e
--- openssh-6.1p1/sshd.c.log-usepam-no	2012-09-14 20:54:58.000000000 +0200
f09e2e
+++ openssh-6.1p1/sshd.c	2012-09-14 20:55:42.289477749 +0200
f09e2e
@@ -1617,6 +1617,10 @@ main(int ac, char **av)
f09e2e
 	parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
f09e2e
 	    &cfg, NULL);
f09e2e
 
f09e2e
+	/* 'UsePAM no' is not supported in Red Hat Enterprise Linux */
f09e2e
+	if (! options.use_pam)
f09e2e
+		logit("WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several problems.");
f09e2e
+
f09e2e
 	seed_rng();
f09e2e
 
f09e2e
 	/* Fill in default values for those options not explicitly set. */
f09e2e
diff -up openssh-6.1p1/sshd_config.log-usepam-no openssh-6.1p1/sshd_config
f09e2e
--- openssh-6.1p1/sshd_config.log-usepam-no	2012-09-14 20:54:58.514255748 +0200
f09e2e
+++ openssh-6.1p1/sshd_config	2012-09-14 20:54:58.551255954 +0200
f09e2e
@@ -95,6 +95,8 @@ GSSAPICleanupCredentials yes
f09e2e
 # If you just want the PAM account and session checks to run without
f09e2e
 # PAM authentication, then enable this but set PasswordAuthentication
f09e2e
 # and ChallengeResponseAuthentication to 'no'.
f09e2e
+# WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several
f09e2e
+# problems.
f09e2e
 #UsePAM no
f09e2e
 UsePAM yes
f09e2e