2012-09-14 20:18:22 +00:00
|
|
|
diff -up openssh-6.1p1/sshd.c.log-usepam-no openssh-6.1p1/sshd.c
|
|
|
|
--- openssh-6.1p1/sshd.c.log-usepam-no 2012-09-14 20:54:58.000000000 +0200
|
|
|
|
+++ openssh-6.1p1/sshd.c 2012-09-14 20:55:42.289477749 +0200
|
|
|
|
@@ -1617,6 +1617,10 @@ main(int ac, char **av)
|
2011-12-06 16:41:06 +00:00
|
|
|
parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
|
2012-09-14 20:18:22 +00:00
|
|
|
&cfg, NULL);
|
2011-12-06 16:41:06 +00:00
|
|
|
|
|
|
|
+ /* 'UsePAM no' is not supported in Fedora */
|
|
|
|
+ if (! options.use_pam)
|
|
|
|
+ logit("WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.");
|
|
|
|
+
|
|
|
|
seed_rng();
|
|
|
|
|
|
|
|
/* Fill in default values for those options not explicitly set. */
|
2012-09-14 20:18:22 +00:00
|
|
|
diff -up openssh-6.1p1/sshd_config.log-usepam-no openssh-6.1p1/sshd_config
|
|
|
|
--- openssh-6.1p1/sshd_config.log-usepam-no 2012-09-14 20:54:58.514255748 +0200
|
|
|
|
+++ openssh-6.1p1/sshd_config 2012-09-14 20:54:58.551255954 +0200
|
2014-02-26 16:08:07 +00:00
|
|
|
@@ -95,6 +95,8 @@ GSSAPICleanupCredentials no
|
2011-12-06 16:41:06 +00:00
|
|
|
# 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'.
|
|
|
|
+# WARNING: 'UsePAM no' is not supported in Fedora and may cause several
|
|
|
|
+# problems.
|
|
|
|
#UsePAM no
|
|
|
|
UsePAM yes
|
|
|
|
|