From 47a0b4a6b52b802b80ab3423328eefe61862dd3e Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Mon, 6 Feb 2017 10:44:02 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index 3eb5761..54d7a20 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -372,14 +372,14 @@ else echo Checking sudoers users.. "${RED_TEXT}"FAIL"${END}" fi homedir=$(cat /etc/pam.d/common-session | grep homedir | grep 0022 | cut -d '=' -f3) -if [ "$homedir" = 0022 ] +if [ $homedir = 0022 ] then echo Checking PAM configuration.. "${INTRO_TEXT}"OK"${END}" else echo Checking PAM configuration.. "${RED_TEXT}"FAIL"${END}" fi cauth=$(cat /etc/pam.d/common-auth | grep required | grep onerr | grep allow | cut -d '=' -f4 | cut -d 'f' -f1) -if [ "$cauth" = allow ] +if [ $cauth = allow ] then echo Checking PAM auth configuration.. "${INTRO_TEXT}"OK"${END}" else