From 0ed71f517dbbb75f323ffb12016a661514876c32 Mon Sep 17 00:00:00 2001 From: PierreGode <8579922+PierreGode@users.noreply.github.com> Date: Fri, 3 Apr 2020 11:11:54 +0200 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index ac83caa..b1b8765 100755 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -353,7 +353,7 @@ then echo "Disabled SSH login.group.allowed" else cauth=$( grep required /etc/pam.d/common-auth | grep onerr | grep allow | cut -d '=' -f4 | awk '{print $1}' | head -1 ) -if [ "$cauth" = "allow" ] < /dev/null > /dev/null 2>&1 +if [ $cauth = "allow" ] < /dev/null > /dev/null 2>&1 then echo "Checking PAM auth configuration.. ${INTRO_TEXT}OK${END}" else @@ -690,7 +690,7 @@ then echo "Disabled SSH login.group.allowed" else cauth=$( grep required /etc/pam.d/sshd | grep onerr | grep allow | cut -d '=' -f4 | awk '{print $1}' | head -1 ) -if [ "$cauth" = "allow" ] < /dev/null > /dev/null 2>&1 +if [ $cauth = "allow" ] < /dev/null > /dev/null 2>&1 then echo "Checking PAM auth configuration.. OK" else @@ -1533,7 +1533,7 @@ else echo Checking PAM configuration.. "${RED_TEXT}FAIL${END}" fi cauth=$( grep required /etc/pam.d/common-auth | grep onerr | grep allow | cut -d '=' -f4 | cut -d 'f' -f1 | head -1 ) -if [ "$cauth" = "allow" ] < /dev/null > /dev/null 2>&1 +if [ $cauth = "allow" ] < /dev/null > /dev/null 2>&1 then echo Checking PAM auth configuration.. "${INTRO_TEXT}OK${END}" else