Update ADconnection.sh

This commit is contained in:
PierreGode 2020-02-21 10:27:50 +01:00 committed by GitHub
parent 44bf86ccc2
commit 8fe9487f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,9 +230,9 @@ else
therealm=$(realm discover "$DOMAIN" | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//') therealm=$(realm discover "$DOMAIN" | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//')
if [ "$therealm" = "no" ] if [ "$therealm" = "no" ]
then then
echo "Realm configured?.. ${RED_TEXT}FAIL${END}" echo "Realm configured?.. ${RED_TEXT}NO${END}"
else else
echo "Realm configured?.. ${INTRO_TEXT}OK${END}" echo "Realm configured?.. ${INTRO_TEXT}YES${END}"
fi fi
fi fi
if [ $states = 12 ] if [ $states = 12 ]
@ -471,9 +471,9 @@ else
therealm=$(realm discover "$DOMAIN" | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//') therealm=$(realm discover "$DOMAIN" | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//')
if [ "$therealm" = "no" ] if [ "$therealm" = "no" ]
then then
echo "Realm configured?.. FAIL" echo "Realm configured?.. NO"
else else
echo "Realm configured?.. OK" echo "Realm configured?.. YES"
fi fi
fi fi
if [ "$states" = "12" ] if [ "$states" = "12" ]
@ -869,9 +869,9 @@ else
therealm=$( realm discover | grep -i realm-name | awk '{print $2}') therealm=$( realm discover | grep -i realm-name | awk '{print $2}')
if [ "$therealm" = "no" ] if [ "$therealm" = "no" ]
then then
echo Realm configured?.. "${RED_TEXT}FAIL${END}" echo Realm configured?.. "${RED_TEXT}NO${END}"
else else
echo Realm configured?.. "${INTRO_TEXT}OK${END}" echo Realm configured?.. "${INTRO_TEXT}YES${END}"
fi fi
fi fi
if [ -f /etc/sudoers.d/sudoers ] < /dev/null > /dev/null 2>&1 if [ -f /etc/sudoers.d/sudoers ] < /dev/null > /dev/null 2>&1
@ -1323,9 +1323,9 @@ echo ""
therealm=$( realm discover | grep -i configured | awk '{print $2}') therealm=$( realm discover | grep -i configured | awk '{print $2}')
if [ "$therealm" = "no" ] if [ "$therealm" = "no" ]
then then
echo Realm configured?.. "${RED_TEXT}FAIL${END}" echo Realm configured?.. "${RED_TEXT}NO${END}"
else else
echo Realm configured?.. "${INTRO_TEXT}OK${END}" echo Realm configured?.. "${INTRO_TEXT}YES${END}"
fi fi
if [ -f /etc/sudoers.d/sudoers ] < /dev/null > /dev/null 2>&1 if [ -f /etc/sudoers.d/sudoers ] < /dev/null > /dev/null 2>&1
then then
@ -1384,9 +1384,9 @@ echo ""
therealm=$( realm discover | grep -i realm-name | awk '{print $2}') therealm=$( realm discover | grep -i realm-name | awk '{print $2}')
if [ "$therealm" = "no" ] if [ "$therealm" = "no" ]
then then
echo "Realm configured?.. FAIL" echo "Realm configured?.. NO"
else else
echo "Realm configured?.. OK" echo "Realm configured?.. YES"
fi fi
if [ -f /etc/sudoers.d/admins ] < /dev/null > /dev/null 2>&1 if [ -f /etc/sudoers.d/admins ] < /dev/null > /dev/null 2>&1
then then