diff --git a/ADconnection.sh b/ADconnection.sh index f46f4a0..b12fff1 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -239,13 +239,8 @@ 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 ] -then -echo Checking PAM auth configuration.. "${INTRO_TEXT}"OK"${END}" -else -echo Checking PAM auth configuration.. "${RED_TEXT}"FAIL"${END}" -fi +echo "${INTRO_TEXT}Please not the it can take up to 5 minutes until AD sincronizes and you can log in..${INTRO_TEXT}" +echo "${INTRO_TEXT}If you sudoers grou in not hostname but a custom group pleace replace hostname with correct groupname in /et/sudoers.d/sudores${INTRO_TEXT}" exec sudo -u root /bin/sh - <