The best way to accomplish what you are looking for is to set option
95 of the DHCP server to hand out the LDAP server. Contact me directly
if you have more questions or would like to know how to implement this
on a Novell server. My counterpart was able to get that to work (very
difficult). If you are handing out DHCP on a Mac OS X Server then just
set the LDAP information there. Then you need to go to the client
"image" and set in Directory Services to use the DHCP supplied LDAP.
doh!. I completely misread your original post Ahmed...
I've seen quite a few problems with Option 95. I also get a bit
concerned about the security implications...
Ahmed, if you're looking to distribute something like this for
different OD servers, you could come up with an easy script to do so.
say you took the original plist and replaced the IP address of the
master with a marker like "%ODMASTER%", you could use sed to replace
the value for each area.
ie,
cat plist_template_file | sed "s|%ODMASTER%|1.2.3.4|g" >
/wherever/the/plist/should/go.plist
or if you wanted to do it in perl on one line, it would be like: