Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Post-action to set openLdap




On 28/01/2005, at 4:00 AM, Jason Fouks wrote:

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:

perl -pi -e "s|%ODMASTER%|1.2.3.4|g" /location/of/the/directory/services.plist


nigel

--
Nigel Kersten				Systems Administrator
College of Fine Arts, UNSW 	Sydney, Australia.
CRICOS Provider Code: 		00098G

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/email@hidden

This email sent to email@hidden
References: 
 >Post-action to set openLdap (From: "Abdulmajeed, Ahmed" <email@hidden>)
 >Re: Post-action to set openLdap (From: Jason Fouks <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.