openssh/bugfix-openssh-6.6p1-log-usepam-no.patch
2019-09-30 11:10:51 -04:00

43 lines
1.4 KiB
Diff

From 45b9c4762614db5bc14b855ccfc019951eebe42d Mon Sep 17 00:00:00 2001
From: guoxiaoqi <guoxiaoqi2@huawei.com>
Date: Mon, 10 Dec 2018 19:07:51 +0000
Subject: [PATCH] bugfix-openssh-6.6p1-log-usepam-no
---
sshd.c | 4 ++--
sshd_config | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sshd.c b/sshd.c
index d6ac3e3..6f273b7 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1707,9 +1707,9 @@ main(int ac, char **av)
parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
cfg, NULL);
- /* 'UsePAM no' is not supported in Fedora */
+ /* 'UsePAM no' is not supported in openEuler */
if (! options.use_pam)
- logit("WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.");
+ logit("WARNING: 'UsePAM no' is not supported in openEuler and may cause several problems.");
seed_rng();
diff --git a/sshd_config b/sshd_config
index cc90a90..17b477c 100644
--- a/sshd_config
+++ b/sshd_config
@@ -91,7 +91,7 @@ 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'.
-# WARNING: 'UsePAM no' is not supported in Fedora and may cause several
+# WARNING: 'UsePAM no' is not supported in openEuler and may cause several
# problems.
UsePAM yes
--
1.8.3.1