kentpeacock / rpms / openssh

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