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
c8ca166971
commit
ecce0e2b3e
@ -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=/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user