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
f6809a83a4
commit
24e0234130
@ -919,19 +919,19 @@ exit
|
|||||||
}
|
}
|
||||||
############################### Update to Realmd from likewise ##################
|
############################### Update to Realmd from likewise ##################
|
||||||
|
|
||||||
Realmdupdate(){
|
#Realmdupdate1(){
|
||||||
export HOSTNAME
|
#export HOSTNAME
|
||||||
myhost=$( hostname )
|
#myhost=$( hostname )
|
||||||
echo "This will delete your homefolder and replace it. Please do a BACKUP"
|
#echo "This will delete your homefolder and replace it. Please do a BACKUP"
|
||||||
echo "Press ctrl C to cancel skript if you wish to make an backup first"
|
#echo "Press ctrl C to cancel skript if you wish to make an backup first"
|
||||||
sleep 5
|
#sleep 5
|
||||||
sudo apt-get update
|
#sudo apt-get update
|
||||||
clear
|
#clear
|
||||||
echo "Remember to recreate AD computer Object if you have upgraded the OS "versions will now match!"
|
#echo "Remember to recreate AD computer Object if you have upgraded the OS "versions will now match!"
|
||||||
sleep 3
|
#sleep 3
|
||||||
sudo domainjoin-cli leave
|
#sudo domainjoin-cli leave
|
||||||
ubuntuclient
|
#ubuntuclient
|
||||||
}
|
#}
|
||||||
|
|
||||||
############################### Fail check ####################################
|
############################### Fail check ####################################
|
||||||
|
|
||||||
@ -1032,7 +1032,7 @@ fi
|
|||||||
|
|
||||||
#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
|
|
||||||
# case $yn in
|
# case $yn in
|
||||||
# [Yy]* )
|
# [Yy]* )
|
||||||
# #sudo realm leave $realmad
|
# #sudo realm leave $realmad
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user