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 ##########################################
Reauthenticate(){
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
case $yn in
[Yy]* )
#sudo realm leave $realmad
#do simple aut without conf
;;
[Nn]* )
sudo realm leave $realmad
ubuntuclient
;;
esac
}
#Reauthenticate(){
#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
# case $yn in
# [Yy]* )
# #sudo realm leave $realmad
# #do simple aut without conf
# ;;
# [Nn]* )
# sudo realm leave $realmad
# ubuntuclient
# ;;
# esac
#}
########################################### info #######################################