Blame openssh-5.9p1-log-usepam-no.patch
|
Petr Lautrbach |
5bd5aa |
diff --git a/sshd.c b/sshd.c
|
|
Petr Lautrbach |
5bd5aa |
index 8dcfdf2..95b63ad 100644
|
|
Petr Lautrbach |
5bd5aa |
--- a/sshd.c
|
|
Petr Lautrbach |
5bd5aa |
+++ b/sshd.c
|
|
Petr Lautrbach |
5bd5aa |
@@ -1592,6 +1592,10 @@ main(int ac, char **av)
|
|
Petr Lautrbach |
5bd5aa |
parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
|
|
Petr Lautrbach |
5bd5aa |
&cfg, NULL, NULL, 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 |
seed_rng();
|
|
Petr Lautrbach |
5bd5aa |
|
|
Petr Lautrbach |
5bd5aa |
/* Fill in default values for those options not explicitly set. */
|
|
Petr Lautrbach |
5bd5aa |
diff --git a/sshd_config b/sshd_config
|
|
Petr Lautrbach |
5bd5aa |
index 8c16754..9f28b04 100644
|
|
Petr Lautrbach |
5bd5aa |
--- a/sshd_config
|
|
Petr Lautrbach |
5bd5aa |
+++ b/sshd_config
|
|
Petr Lautrbach |
5bd5aa |
@@ -92,6 +92,8 @@ GSSAPICleanupCredentials yes
|
|
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 no
|
|
Petr Lautrbach |
5bd5aa |
UsePAM yes
|
|
Petr Lautrbach |
5bd5aa |
|