vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Petr Lautrbach 94c6f8
diff --git a/sshd.c b/sshd.c
Petr Lautrbach 94c6f8
--- a/sshd.c
Petr Lautrbach 94c6f8
+++ b/sshd.c
Jakub Jelen 6cf9b8
@@ -1701,6 +1701,10 @@ main(int ac, char **av)
Petr Lautrbach 5bd5aa
 	parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
Jakub Jelen bbf61d
 	    cfg, NULL);
Petr Lautrbach 5bd5aa
 
Petr Lautrbach 5bd5aa
+	/* 'UsePAM no' is not supported in Fedora */
Petr Lautrbach 5bd5aa
+	if (! options.use_pam)
Petr Lautrbach 5bd5aa
+		logit("WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.");
Petr Lautrbach 5bd5aa
+
Petr Lautrbach 5bd5aa
 	/* Fill in default values for those options not explicitly set. */
Jakub Jelen def1de
 	fill_default_server_options(&options);
Jakub Jelen def1de
 
Petr Lautrbach 94c6f8
diff --git a/sshd_config b/sshd_config
Petr Lautrbach 94c6f8
--- a/sshd_config
Petr Lautrbach 94c6f8
+++ b/sshd_config
Petr Lautrbach 94c6f8
@@ -101,6 +101,8 @@ GSSAPICleanupCredentials no
Petr Lautrbach 5bd5aa
 # If you just want the PAM account and session checks to run without
Petr Lautrbach 5bd5aa
 # PAM authentication, then enable this but set PasswordAuthentication
Petr Lautrbach 5bd5aa
 # and ChallengeResponseAuthentication to 'no'.
Petr Lautrbach 5bd5aa
+# WARNING: 'UsePAM no' is not supported in Fedora and may cause several
Petr Lautrbach 5bd5aa
+# problems.
Petr Lautrbach 5bd5aa
 UsePAM yes
Petr Lautrbach 5bd5aa
 
Petr Lautrbach 94c6f8
 #AllowAgentForwarding yes