Update ADconnection.sh

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

View File

@ -127,7 +127,7 @@ else
* ) echo 'Please answer yes or no.';;
esac
MyOU=$(echo $OU | cut -d '=' -f1)
if [ "$MyOU" = CN ]
if [ "$MyOU" = OU ]
then
echo "Setting OU = $OU"
sudo realm join computer-ou = $OU --verbose --user=$ADMIN $DOMAIN
@ -151,7 +151,7 @@ fi
* ) echo 'Please answer yes or no.';;
esac
MyOU=$(echo $OU | cut -d '=' -f1)
if [ "$MyOU" = CN ]
if [ "$MyOU" = OU ]
then
echo "Setting OU = $OU"
sudo realm join computer-ou = $OU --verbose --user=$ADMIN $DOMAIN --install=/