Home Forums OS X Server and Client Discussion Active Directory AD Bind – computer OU structure not working.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #380504
    bango
    Participant

    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

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Comments are closed