Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-11-28 14:41:48 +01:00 committed by GitHub
parent ecce0e2b3e
commit 62ee03fbcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,7 @@ MyOU=$(echo $OU | cut -d '=' -f1)
if [ "$MyOU" = OU ] if [ "$MyOU" = OU ]
then then
echo "Setting OU = $OU" echo "Setting OU = $OU"
sudo realm join computer-ou = $OU --verbose --user=$ADMIN $DOMAIN sudo realm join --computer-ou = $OU --verbose --user=$ADMIN $DOMAIN
else else
echo "Something went wrong. please use this format ( CN=Computers,DC=domain,DC=com )" echo "Something went wrong. please use this format ( CN=Computers,DC=domain,DC=com )"
exit exit
@ -154,7 +154,7 @@ MyOU=$(echo $OU | cut -d '=' -f1)
if [ "$MyOU" = OU ] if [ "$MyOU" = OU ]
then then
echo "Setting OU = $OU" echo "Setting OU = $OU"
sudo realm join computer-ou = $OU --verbose --user=$ADMIN $DOMAIN --install=/ sudo realm join --computer-ou = $OU --verbose --user=$ADMIN $DOMAIN --install=/
else else
echo "Something went wrong. please use this format ( CN=Computers,DC=domain,DC=com )" echo "Something went wrong. please use this format ( CN=Computers,DC=domain,DC=com )"
exit exit