From c47b1914d2746a0562a690de65bf0febe910fad8 Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Thu, 26 Jan 2017 12:09:33 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index c055655..18eba15 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -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 #######################################