AFP548

OD Binding not working properly

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" [/code] I am guessing there is a record that is not updating. Any tips?
Exit mobile version