Blame openssh-6.6p1-log-usepam-no.patch
|
Petr Lautrbach |
94c6f8 |
diff --git a/sshd.c b/sshd.c
|
|
Petr Lautrbach |
94c6f8 |
index a7b8b6a..24ab272 100644
|
|
Petr Lautrbach |
94c6f8 |
--- a/sshd.c
|
|
Petr Lautrbach |
94c6f8 |
+++ b/sshd.c
|
|
Petr Lautrbach |
94c6f8 |
@@ -1620,6 +1620,10 @@ main(int ac, char **av)
|
|
Petr Lautrbach |
5bd5aa |
parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
|
|
Petr Lautrbach |
9fe1af |
&cfg, 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 |
94c6f8 |
diff --git a/sshd_config b/sshd_config
|
|
Petr Lautrbach |
94c6f8 |
index 36cb27a..c1b7c03 100644
|
|
Petr Lautrbach |
94c6f8 |
--- a/sshd_config
|
|
Petr Lautrbach |
94c6f8 |
+++ b/sshd_config
|
|
Petr Lautrbach |
94c6f8 |
@@ -101,6 +101,8 @@ GSSAPICleanupCredentials no
|
|
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 yes
|
|
Petr Lautrbach |
5bd5aa |
|
|
Petr Lautrbach |
94c6f8 |
#AllowAgentForwarding yes
|