[Casper] Remotely configure Directory Utility

Steve Wood swood at integerdallas.com
Mon Jan 12 11:38:39 PST 2009


Unless Miles or someone else has a better way, this is how I’ve done it in
the past, using these commands in a script:



#!/bin/bash/
OD_SERVER=yourODServer.name'
AD_DOMAIN='yourADdomain'
SiteId='NHV'
OldName=`scutil --get ComputerName`
SERIALNUM=`system_profiler | grep "Serial Number" | awk '{print $3}'`
scutil --set ComputerName $SiteId$SERIALNUM
scutil --set LocalHostName $SiteId$SERIALNUM
scutil --set HostName $SiteId$SERIALNUM
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resource
s/kickstart -configure -computerinfo -set1 -1 $OldName

computerid=`scutil --get ComputerName`

dsconfigldap -v -f -a $OD_SERVER -n OD_SERVER -c $computerid -u diradmin -p
'pass'
sleep 10
dsconfigad -f -a $computerid -domain $AD_DOMAIN -u swood -p 'pass' -ou
"CN=Unsorted Computers,OU=Locations,DC=yourad,DC=net"
sleep 20

dscl /Search -create / SearchPolicy CSPSearchPath
dscl /Search -append / CSPSearchPath /LDAPv3/$OD_SERVER
dscl /Search -append / CSPSearchPath "/Active Directory/All Domains"

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





Steve Wood
Director of IT
swood at integerdallas.com

The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX 75201
T 214.758.6813 | F 214.758.6901 | C 940.312.2475




From: Henry Bonath <hbonath at computersitecolumbus.com>
Date: Mon, 12 Jan 2009 14:27:53 -0500
To: "casper at list.jamfsoftware.com" <casper at list.jamfsoftware.com>
Subject: [Casper] Remotely configure Directory Utility

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
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



--
The information contained in this email transmission is solely for the addressee(s) named above and is privileged and/or confidential.  If the reader of this message is not the intended recipient or the person responsible to deliver it to the intended recipient; he or she is prohibited from reading or disclosing the information contained in this transmission.  Any examination, use, dissemination, distribution, or copying of this communication is strictly prohibited.  Please contact us immediately by telephone for instructions if you have received this communication in error: (214) 758-6800
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20090112/60d5359b/attachment.html 


More information about the Casper mailing list