Blame openssh-5.8p2-log-usepam-no.patch
|
|
c905a28 |
diff --git a/sshd.c b/sshd.c
|
|
|
c905a28 |
index 8dcfdf2..95b63ad 100644
|
|
|
c905a28 |
--- a/sshd.c
|
|
|
c905a28 |
+++ b/sshd.c
|
|
|
c905a28 |
@@ -1592,6 +1592,10 @@ main(int ac, char **av)
|
|
|
c905a28 |
parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
|
|
|
c905a28 |
&cfg, NULL, NULL, NULL);
|
|
|
c905a28 |
|
|
|
c905a28 |
+ /* 'UsePAM no' is not supported in Fedora */
|
|
|
c905a28 |
+ if (! options.use_pam)
|
|
|
c905a28 |
+ logit("WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.");
|
|
|
c905a28 |
+
|
|
|
c905a28 |
seed_rng();
|
|
|
c905a28 |
|
|
|
c905a28 |
/* Fill in default values for those options not explicitly set. */
|
|
|
c905a28 |
diff --git a/sshd_config b/sshd_config
|
|
|
c905a28 |
index 8c16754..9f28b04 100644
|
|
|
c905a28 |
--- a/sshd_config
|
|
|
c905a28 |
+++ b/sshd_config
|
|
|
c905a28 |
@@ -92,6 +92,8 @@ GSSAPICleanupCredentials yes
|
|
|
c905a28 |
# If you just want the PAM account and session checks to run without
|
|
|
c905a28 |
# PAM authentication, then enable this but set PasswordAuthentication
|
|
|
c905a28 |
# and ChallengeResponseAuthentication to 'no'.
|
|
|
c905a28 |
+# WARNING: 'UsePAM no' is not supported in Fedora and may cause several
|
|
|
c905a28 |
+# problems.
|
|
|
c905a28 |
#UsePAM no
|
|
|
c905a28 |
UsePAM yes
|
|
|
c905a28 |
|