From 4b77ffc0671b5c370fa5c68f89259db228724b19 Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Mon, 6 Feb 2017 09:18:32 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ADconnection.sh b/ADconnection.sh index cff2f0d..b0b9d30 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -306,6 +306,7 @@ echo "override_homedir = /home/%d/%u" >> /etc/sssd/sssd.conf eof } ############################### Fail check #################################### +failcheck(){ therealm=$(realm discover | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//') if [ $therealm = no ] then @@ -334,7 +335,7 @@ echo Checking login configuration.. "${INTRO_TEXT}"OK"${END}" else echo Checking login configuration.. "${RED_TEXT}"FAIL"${END}" fi - +} ############################### Reauth ########################################## Reauthenticate14(){