Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nicoisconfusion

macrumors newbie
Original poster
Sep 27, 2011
15
0
Hi Guys i am trying to run a script that will remove machines from the old OD server and then join it onto the new OD.
I have the machine in a test group with a welcome message for the old OD

The script runs fine with no errors at all. However when i log out it is still showing the old OD welcome message and not the new one. Everything appears to have joined without an issue. There are no error messages on the new OD connection and the light is green.

This is the code i wrote
Code:
#!/bin/sh
#This script binds a machine to the OD

#Unbind from existing OD
/usr/sbin/dsconfigldap -r itsdms062.cs.adelaide.edu.au
sleep 5

#Join machine onto new OD master
/usr/sbin/dsconfigldap -v -f -a 10.32.16.172 -n 10.32.16.172 -u diradmin -p password -l pcadmin -q password
dscl /Search -create / SearchPolicy CSPSearchPath
dscl /Search -append / CSPSearchPath /LDAPv3/10.32.16.172
dscl /Search -append / CSPSearchPath "/Active Directory/All Domains"

sleep 10
dscl /Search/Contacts -create / SearchPolicy CSPSearchPath
dscl /Search/Contacts -append / CSPSearchPath /LDAPv3/10.32.16.172
dscl /Search/Contacts -append / CSPSearchPath "/Active Directory/All Domains"

I am guessing there is a record that is not updating. Any tips?
These machines are running 10.6.8
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.