[Casper] Remotely configure Directory Utility

Henry Bonath hbonath at computersitecolumbus.com
Mon Jan 12 11:54:26 PST 2009


Thanks so much!


On 1/12/09 2:42 PM, "Miles Leacy" <miles.leacy at themacadmin.com> wrote:

#!/bin/bash

##### HEADER BEGINS #####
# scr_sys_dsConfigLDAP.bash
#
# Created 20070212 by Miles A. Leacy IV
# miles.leacy at themacadmin.com
# Modified 20090106 by Miles A. Leacy IV
# Copyright 2009 Miles A. Leacy IV
#
# This script may be copied and distributed freely as long as this header remains intact.
#
# This script is provided "as is".  The author offers no warranty or guarantee of any kind.
# Use of this script is at your own risk.  The author takes no responsibility for loss of use,
# loss of data, loss of job, loss of socks, the onset of armageddon, or any other negative effects.
#
# Test thoroughly in a lab environment before use on production systems.
# When you think it's ok, test again.  When you're certain it's ok, test twice more.
#
# This script adds an LDAP configuration and sets the custom search path.
# Replace "ldap.server.ext" with your LDAP server's FQDN or use a script parameter to pass
# a value from Casper.
#
# If you don't use Active directory, comment out or delete all lines that
# contain "Active Directory".
#
# This script is intended for use as an "At Reboot" script with Casper Imaging.
#
##### HEADER ENDS #####

# add LDAP config
dsconfigldap -v -a ldap.server.ext

# set up the custom search paths
dscl /Search -create / SearchPolicy CSPSearchPath
dscl /Search -append / CSPSearchPath "/Active Directory/All Domains"
dscl /Search -append / CSPSearchPath /LDAPv3/ldap.server.ext
dscl /Search/Contacts -create / SearchPolicy CSPSearchPath
dscl /Search/Contacts -append / CSPSearchPath "/Active Directory/All Domains"
dscl /Search/Contacts -append / CSPSearchPath /LDAPv3/ldap.server.ext



----------
Miles A. Leacy IV

? Certified System Administrator 10.4
? Certified Technical Coordinator 10.5
? Certified Trainer
Certified Casper Administrator
----------
voice: 1-347-277-7321
miles.leacy at themacadmin.com
www.themacadmin.com <http://www.themacadmin.com>




2009/1/12 Henry Bonath <hbonath at computersitecolumbus.com>
Is there any way out there to remotely configure LDAPv3 plugin for server search paths?
So far, the only way that may be possible that I can see is to push out .plist files with directory info to /Library/Preferences/DirectoryService

Thanks in advance!
-Henry
________________________________

Henry Bonath
Network Engineer
Computer Site Columbus
6155-N Huntley Road
Columbus, OH 43229
computersitecolumbus.com <http://computersitecolumbus.com>
Tel: 614.786.7100
Cell: 614.738.0822

Fax: 614.786.7310 Your I.T. Department

________________________________

14:29:15 Mon 12 Jan 2009

This message (and any associated files) is intended only for the use of the individual or entity to which it is addressed and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not the intended recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer.


_______________________________________________
Casper mailing list
Casper at list.jamfsoftware.com
http://list.jamfsoftware.com/mailman/listinfo/casper



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20090112/ed5b44ad/attachment.html 


More information about the Casper mailing list