diff --git a/ADconnection.sh b/ADconnection.sh index 9a044c0..3eb5761 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -349,6 +349,8 @@ eof } ############################### Fail check #################################### failcheck(){ +export HOSTNAME +myhost=$( hostname ) therealm=$(realm discover | grep -i configured: | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//') if [ $therealm = no ] then