f32b842
diff -up openssh-8.6p1/sshd.c.log-usepam-no openssh-8.6p1/sshd.c
f32b842
--- openssh-8.6p1/sshd.c.log-usepam-no	2021-04-19 14:00:45.099735129 +0200
f32b842
+++ openssh-8.6p1/sshd.c	2021-04-19 14:03:21.140920974 +0200
f32b842
@@ -1749,6 +1749,10 @@ main(int ac, char **av)
5bd5aa2
 	parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
03150f6
 	    cfg, &includes, NULL, rexeced_flag);
5bd5aa2
 
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
+
f32b842
 #ifdef WITH_OPENSSL
f32b842
 	if (options.moduli_file != NULL)
f32b842
 		dh_set_moduli_file(options.moduli_file);
f32b842
diff -up openssh-8.6p1/sshd_config.log-usepam-no openssh-8.6p1/sshd_config
f32b842
--- openssh-8.6p1/sshd_config.log-usepam-no	2021-04-19 14:00:45.098735121 +0200
f32b842
+++ openssh-8.6p1/sshd_config	2021-04-19 14:00:45.099735129 +0200
f32b842
@@ -87,6 +87,8 @@ AuthorizedKeysFile	.ssh/authorized_keys
5bd5aa2
 # If you just want the PAM account and session checks to run without
5bd5aa2
 # PAM authentication, then enable this but set PasswordAuthentication
8f4d190
 # and KbdInteractiveAuthentication to 'no'.
5bd5aa2
+# WARNING: 'UsePAM no' is not supported in Fedora and may cause several
5bd5aa2
+# problems.
51f5c1c
 #UsePAM no
5bd5aa2
 
94c6f8d
 #AllowAgentForwarding yes