mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Update ADconnection.sh
This commit is contained in:
parent
2c7d17363e
commit
c47b1914d2
@ -271,12 +271,14 @@ eof
|
||||
}
|
||||
############################### Reauth ##########################################
|
||||
Reauthenticate14(){
|
||||
echo "Reauth for Likewise only!"
|
||||
echo "Reauth for Realmd ubuntu 14 only!"
|
||||
echo "Type domain"
|
||||
read DOMAIN
|
||||
echo "Type Adminuser"
|
||||
read user
|
||||
sudo domainjoin-cli join $DOMAIN ${user}
|
||||
read ADMIN
|
||||
discover=$(realm discover | grep domain-name: | cut -d ':' -f2)
|
||||
realm leave $discover
|
||||
sudo realm join -v -U $ADMIN $DOMAIN --install=/
|
||||
exit
|
||||
}
|
||||
########################################### info #######################################
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user