openssh/SOURCES/openssh-7.8p1-UsePAM-warnin...

27 lines
909 B
Diff
Raw Normal View History

2019-05-07 06:34:56 +00:00
diff --git a/sshd.c b/sshd.c
--- a/sshd.c
+++ b/sshd.c
@@ -1701,6 +1701,10 @@ main(int ac, char **av)
parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
cfg, NULL);
2022-11-08 07:03:27 +00:00
+ /* 'UsePAM no' is not supported in RHEL */
2019-05-07 06:34:56 +00:00
+ if (! options.use_pam)
2022-11-08 07:03:27 +00:00
+ logit("WARNING: 'UsePAM no' is not supported in RHEL and may cause several problems.");
2019-05-07 06:34:56 +00:00
+
/* Fill in default values for those options not explicitly set. */
2019-11-05 20:55:14 +00:00
fill_default_server_options(&options);
2019-05-07 06:34:56 +00:00
diff --git a/sshd_config b/sshd_config
--- a/sshd_config
+++ b/sshd_config
@@ -101,6 +101,8 @@ GSSAPICleanupCredentials no
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
2022-11-08 07:03:27 +00:00
+# WARNING: 'UsePAM no' is not supported in RHEL and may cause several
2019-05-07 06:34:56 +00:00
+# problems.
UsePAM yes
#AllowAgentForwarding yes