Update ADconnection.sh

This commit is contained in:
PierreGode 2018-08-08 13:16:21 +02:00 committed by GitHub
parent bb70012156
commit 82ebba5595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -865,7 +865,7 @@ fi
############################### Reauth ##########################################
Reauthenticate(){
whoelse=$( echo `whoami` )
whoelse=$( who -ut | grep -v old | awk '{print $1}' )
homes=$( ls /home/tobii.intra/ )
if [ "$homes" = "$whoelse" ]
then
@ -933,7 +933,7 @@ fi
########################################### Leave Realm ################################
leave(){
whoelse=$( echo `whoami` )
whoelse=$( who -ut | grep -v old | awk '{print $1}' )
homes=$( ls /home/tobii.intra/ )
if [ "$homes" = "$whoelse" ]
then