From 1ec2be7795e18af62cd78ae538ec86bdfba71509 Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Thu, 8 Feb 2018 13:47:41 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index cad713b..f74138d 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -134,23 +134,23 @@ else echo "${INTRO_TEXT}"Detecting Ubuntu $var"${END}" sleep 1 clear - read -p "Do you wish to select an OU? (Default is CN=Computers,DC=domain,DC=com) (y/n)?" yn - case $yn in - [Yy]* ) echo "${INTRO_TEXT}"Please type OU"${END}" - read -r OU -MyOU=$(echo $OU | cut -d '=' -f1 | awk '{print toupper($0)}') -if [ "$MyOU" = OU ] -then -echo "Setting OU: $OU" -sudo realm join --user=ADMIN --computer-ou=$OU DOMAIN -else -echo "Something went wrong. please use this format ( OU=Computers,DC=domain,DC=com )" -exit -fi;; - - [Nn]* ) echo "";; - * ) echo 'Please answer yes or no.';; - esac +# read -p "Do you wish to select an OU? (Default is CN=Computers,DC=domain,DC=com) (y/n)?" yn +# case $yn in +# [Yy]* ) echo "${INTRO_TEXT}"Please type OU"${END}" +# read -r OU +#MyOU=$(echo $OU | cut -d '=' -f1 | awk '{print toupper($0)}') +#if [ "$MyOU" = OU ] +#then +#echo "Setting OU: $OU" +#sudo realm join --user=ADMIN --computer-ou=$OU DOMAIN +#else +#echo "Something went wrong. please use this format ( OU=Computers,DC=domain,DC=com )" +#exit +#fi;; +# +# [Nn]* ) echo "";; +# * ) echo 'Please answer yes or no.';; +# esac sudo realm join --verbose --user=$ADMIN $DOMAIN else if [ "$var" -eq "17" ]