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
f097244ddf
commit
33cb939bad
@ -198,6 +198,13 @@ echo Checking PAM auth configuration.. "${RED_TEXT}"FAIL"${END}"
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
realm discover $DOMAIN
|
realm discover $DOMAIN
|
||||||
|
if [ "$therealm" = no ]
|
||||||
|
then
|
||||||
|
echo "${RED_TEXT}"Join has Failed"${END}"
|
||||||
|
else
|
||||||
|
lastverify=$( realm discover $DOMAIN | grep -m 1 $DOMAIN )
|
||||||
|
echo "${INTRO_TEXT}"joined to $ lastverify"${END}"
|
||||||
|
fi
|
||||||
echo "${INTRO_TEXT}Please reboot your machine and wait 3 min for Active Directory to sync before login${INTRO_TEXT}"
|
echo "${INTRO_TEXT}Please reboot your machine and wait 3 min for Active Directory to sync before login${INTRO_TEXT}"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user