From b5824af9604713b48c028454fb59bafed2662e40 Mon Sep 17 00:00:00 2001 From: PierreGode Date: Wed, 4 Dec 2019 11:16:36 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index d0af8a3..a537346 100755 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -1289,12 +1289,11 @@ echo "Checking PAM configuration.. OK" else echo "Checking PAM configuration.. FAIL" fi -cauth=$(grep required /etc/pam.d/system-auth | grep onerr | grep allow | cut -d '=' -f4 | cut -d 'f' -f1) -if [ "$cauth" = "allow" ] < /dev/null > /dev/null 2>&1 +if [ -f /etc/ssh/login.group.allowed ] then -echo "Checking PAM auth configuration.. OK" +echo "Checking login.group.allowed configuration.. OK" else -echo "Checking PAM auth configuration.. SSH security not configured" +echo "Checking login.group.allowed.. SSH security not configured" fi fi echo ""