Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-12-13 10:16:48 +01:00 committed by GitHub
parent 0a18bde352
commit f6809a83a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1030,20 +1030,20 @@ fi
############################### Reauth ########################################## ############################### Reauth ##########################################
Reauthenticate(){ #Reauthenticate(){
realmad=$(sudo cat /etc/sssd/sssd.conf | grep -i domain | grep -i ad | awk '{print $3}' ) #realmad=$(sudo cat /etc/sssd/sssd.conf | grep -i domain | grep -i ad | awk '{print $3}')
read -p "Do you wish to keep previous cnfiguration (y/n)?" yn #read -p "Do you wish to keep previous cnfiguration (y/n)?" yn
case $yn in # case $yn in
[Yy]* ) # [Yy]* )
#sudo realm leave $realmad # #sudo realm leave $realmad
#do simple aut without conf # #do simple aut without conf
;; # ;;
[Nn]* ) # [Nn]* )
sudo realm leave $realmad # sudo realm leave $realmad
ubuntuclient # ubuntuclient
;; # ;;
esac # esac
} #}
########################################### info ####################################### ########################################### info #######################################