File openssh-7.2p2-enable_PAM_by_default.patch of Package openssh.29886

From efb55ec032c9968c3289e3697a2eb7fcb76c7826 Mon Sep 17 00:00:00 2001
From: Old openssh patches <pcerny@suse.com>
Date: Tue, 25 Oct 2022 18:52:57 +0200
Subject: [PATCH] openssh-7.2p2-enable_PAM_by_default

# HG changeset patch
# Parent  980f301b2920c09b30577dd722546bca85d25fc1
# force PAM in defaullt install (this was removed from upstream in 3.8p1)
# bnc#46749
# --used to be called '-pam-fix2'
---
 sshd_config | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sshd_config b/sshd_config
index 59f3bbb0..8a20a882 100644
--- a/sshd_config
+++ b/sshd_config
@@ -69,7 +69,7 @@ AuthorizedKeysFile	.ssh/authorized_keys
 #IgnoreRhosts yes
 
 # To disable tunneled clear text passwords, change to no here!
-#PasswordAuthentication yes
+PasswordAuthentication no
 #PermitEmptyPasswords no
 
 # Change to no to disable s/key passwords
@@ -94,7 +94,7 @@ AuthorizedKeysFile	.ssh/authorized_keys
 # 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'.
-#UsePAM no
+UsePAM yes
 
 #AllowAgentForwarding yes
 #AllowTcpForwarding yes
-- 
2.38.0

openSUSE Build Service is sponsored by