Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-01-26 12:09:33 +01:00 committed by GitHub
parent 2c7d17363e
commit c47b1914d2

View File

@ -271,12 +271,14 @@ eof
} }
############################### Reauth ########################################## ############################### Reauth ##########################################
Reauthenticate14(){ Reauthenticate14(){
echo "Reauth for Likewise only!" echo "Reauth for Realmd ubuntu 14 only!"
echo "Type domain" echo "Type domain"
read DOMAIN read DOMAIN
echo "Type Adminuser" echo "Type Adminuser"
read user read ADMIN
sudo domainjoin-cli join $DOMAIN ${user} discover=$(realm discover | grep domain-name: | cut -d ':' -f2)
realm leave $discover
sudo realm join -v -U $ADMIN $DOMAIN --install=/
exit exit
} }
########################################### info ####################################### ########################################### info #######################################