hi
im using a bash script to bind our macs to AD. everything is working ok (in the script) except the object doesn’t get placed in the correct computer OU structure in AD. this is the if else statement i use inside that script:
isit_laptop=`/usr/sbin/system_profiler SPHardwareDataType | grep “Model Identifier” | grep “Book”`
if [ “$isit_laptop” = “” ]; then
ou=”OU=Laptops,OU=Root,DC=company,DC=com”
else
ou=”OU=Desktops,OU=Root,DC=company,DC=com”
fi
and then when the script calls it, it doesn’t work.
even if i don’t use the if statement and plainly just use:
ou=”OU=Desktops,OU=Clients,DC=company,DC=com”
still doesnt work.
**this is the computer OU i get instead: CN=Computers,DC=company,DC=com**
any ideas would be great. thanks
Comments are closed