mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Update ADconnection.sh
This commit is contained in:
parent
44bf86ccc2
commit
8fe9487f77
@ -230,9 +230,9 @@ else
|
||||
therealm=$(realm discover "$DOMAIN" | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//')
|
||||
if [ "$therealm" = "no" ]
|
||||
then
|
||||
echo "Realm configured?.. ${RED_TEXT}FAIL${END}"
|
||||
echo "Realm configured?.. ${RED_TEXT}NO${END}"
|
||||
else
|
||||
echo "Realm configured?.. ${INTRO_TEXT}OK${END}"
|
||||
echo "Realm configured?.. ${INTRO_TEXT}YES${END}"
|
||||
fi
|
||||
fi
|
||||
if [ $states = 12 ]
|
||||
@ -471,9 +471,9 @@ else
|
||||
therealm=$(realm discover "$DOMAIN" | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//')
|
||||
if [ "$therealm" = "no" ]
|
||||
then
|
||||
echo "Realm configured?.. FAIL"
|
||||
echo "Realm configured?.. NO"
|
||||
else
|
||||
echo "Realm configured?.. OK"
|
||||
echo "Realm configured?.. YES"
|
||||
fi
|
||||
fi
|
||||
if [ "$states" = "12" ]
|
||||
@ -869,9 +869,9 @@ else
|
||||
therealm=$( realm discover | grep -i realm-name | awk '{print $2}')
|
||||
if [ "$therealm" = "no" ]
|
||||
then
|
||||
echo Realm configured?.. "${RED_TEXT}FAIL${END}"
|
||||
echo Realm configured?.. "${RED_TEXT}NO${END}"
|
||||
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
|
||||
@ -1323,9 +1323,9 @@ echo ""
|
||||
therealm=$( realm discover | grep -i configured | awk '{print $2}')
|
||||
if [ "$therealm" = "no" ]
|
||||
then
|
||||
echo Realm configured?.. "${RED_TEXT}FAIL${END}"
|
||||
echo Realm configured?.. "${RED_TEXT}NO${END}"
|
||||
else
|
||||
echo Realm configured?.. "${INTRO_TEXT}OK${END}"
|
||||
echo Realm configured?.. "${INTRO_TEXT}YES${END}"
|
||||
fi
|
||||
if [ -f /etc/sudoers.d/sudoers ] < /dev/null > /dev/null 2>&1
|
||||
then
|
||||
@ -1384,9 +1384,9 @@ echo ""
|
||||
therealm=$( realm discover | grep -i realm-name | awk '{print $2}')
|
||||
if [ "$therealm" = "no" ]
|
||||
then
|
||||
echo "Realm configured?.. FAIL"
|
||||
echo "Realm configured?.. NO"
|
||||
else
|
||||
echo "Realm configured?.. OK"
|
||||
echo "Realm configured?.. YES"
|
||||
fi
|
||||
if [ -f /etc/sudoers.d/admins ] < /dev/null > /dev/null 2>&1
|
||||
then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user