jonathancammack / rpms / openssh

Forked from rpms/openssh 8 months ago
Clone

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

8f2528
diff --git a/sshd.c b/sshd.c
8f2528
index a7b8b6a..24ab272 100644
8f2528
--- a/sshd.c
8f2528
+++ b/sshd.c
8f2528
@@ -1620,6 +1620,10 @@ main(int ac, char **av)
8f2528
 	parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
8f2528
 	    &cfg, NULL);
8f2528
 
8f2528
+	/* 'UsePAM no' is not supported in Red Hat Enterprise Linux */
8f2528
+	if (! options.use_pam)
8f2528
+		logit("WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several problems.");
8f2528
+
8f2528
 	seed_rng();
8f2528
 
8f2528
 	/* Fill in default values for those options not explicitly set. */
8f2528
diff --git a/sshd_config b/sshd_config
8f2528
index 36cb27a..c1b7c03 100644
8f2528
--- a/sshd_config
8f2528
+++ b/sshd_config
8f2528
@@ -101,6 +101,8 @@ GSSAPICleanupCredentials no
8f2528
 # If you just want the PAM account and session checks to run without
8f2528
 # PAM authentication, then enable this but set PasswordAuthentication
8f2528
 # and ChallengeResponseAuthentication to 'no'.
8f2528
+# WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several
8f2528
+# problems.
8f2528
 UsePAM yes
8f2528
 
8f2528
 #AllowAgentForwarding yes