mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Update ADconnection.sh
This commit is contained in:
parent
0a18bde352
commit
f6809a83a4
@ -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 #######################################
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user