94c6f8d
diff --git a/sshd.c b/sshd.c
94c6f8d
--- a/sshd.c
94c6f8d
+++ b/sshd.c
186bf38
@@ -1701,6 +1701,14 @@ main(int ac, char **av)
5bd5aa2
 	parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
9fe1afc
 	    &cfg, NULL);
5bd5aa2
 
186bf38
+	/* 'UseLogin yes' is not supported in Fedora */
a806824
+	if (options.use_login == 1)
186bf38
+		logit("WARNING: 'UseLogin yes' is not supported in Fedora and may cause several problems.");
186bf38
+
5bd5aa2
+	/* 'UsePAM no' is not supported in Fedora */
5bd5aa2
+	if (! options.use_pam)
5bd5aa2
+		logit("WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.");
5bd5aa2
+
5bd5aa2
 	seed_rng();
5bd5aa2
 
5bd5aa2
 	/* Fill in default values for those options not explicitly set. */
94c6f8d
diff --git a/sshd_config b/sshd_config
94c6f8d
--- a/sshd_config
94c6f8d
+++ b/sshd_config
94c6f8d
@@ -101,6 +101,8 @@ GSSAPICleanupCredentials no
5bd5aa2
 # If you just want the PAM account and session checks to run without
5bd5aa2
 # PAM authentication, then enable this but set PasswordAuthentication
5bd5aa2
 # and ChallengeResponseAuthentication to 'no'.
5bd5aa2
+# WARNING: 'UsePAM no' is not supported in Fedora and may cause several
5bd5aa2
+# problems.
5bd5aa2
 UsePAM yes
5bd5aa2
 
94c6f8d
 #AllowAgentForwarding yes
186bf38
@@ -113,6 +115,8 @@ X11Forwarding yes
186bf38
 #PrintMotd yes
186bf38
 #PrintLastLog yes
186bf38
 #TCPKeepAlive yes
186bf38
+# WARNING: 'UseLogin yes' is not supported in Fedora and may cause several
186bf38
+# problems.
186bf38
 #UseLogin no
186bf38
 #UsePrivilegeSeparation sandbox
186bf38
 #PermitUserEnvironment no