<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title></title>
<style type="text/css">
<!--
body{margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px;}
-->
</style>
</head>
<body marginleft="10" marginright="10" margintop="10" marginbottom="10">
<div align="left" style="text-align:left;"><font face="Geneva" size="+0" color="#000000" style="font-family:Geneva;font-size:10pt;color:#000000;">Here's my script. &nbsp;We also bind to AD so I have it adding AD to the search policy ahead of LDAP.</font></div>
<br />
<div align="left" style="text-align:left;"><font face="Geneva" size="+0" color="#000000" style="font-family:Geneva;font-size:10pt;color:#000000;">defaults write /Library/Preferences/DirectoryService/DirectoryService &quot;LDAPv3&quot; &quot;Active&quot;</font></div>
<div align="left" style="text-align:left;"><font face="Geneva" size="+0" color="#000000" style="font-family:Geneva;font-size:10pt;color:#000000;">dsconfigldap -v -a od.server.com -n od.server.com -u username -p password</font></div>
<div align="left" style="text-align:left;"><font face="Geneva" size="+0" color="#000000" style="font-family:Geneva;font-size:10pt;color:#000000;">sleep 10</font></div>
<div align="left" style="text-align:left;"><font face="Geneva" size="+0" color="#000000" style="font-family:Geneva;font-size:10pt;color:#000000;">dscl /Search -create / SearchPolicy CSPSearchPath</font></div>
<div align="left" style="text-align:left;"><font face="Geneva" size="+0" color="#000000" style="font-family:Geneva;font-size:10pt;color:#000000;">killall DirectoryService</font></div>
<div align="left" style="text-align:left;"><font face="Geneva" size="+0" color="#000000" style="font-family:Geneva;font-size:10pt;color:#000000;">sleep 5</font></div>
<div align="left" style="text-align:left;"><font face="Geneva" size="+0" color="#000000" style="font-family:Geneva;font-size:10pt;color:#000000;">dscl /Search -create / SearchPolicy CSPSearchPath</font></div>
<div align="left" style="text-align:left;"><font face="Geneva" size="+0" color="#000000" style="font-family:Geneva;font-size:10pt;color:#000000;">dscl /Search -append / CSPSearchPath &quot;/Active Directory/All Domains&quot;</font></div>
<div align="left" style="text-align:left;"><font face="Geneva" size="+0" color="#000000" style="font-family:Geneva;font-size:10pt;color:#000000;">dscl /Search -append / CSPSearchPath /LDAPv3/od.server.com</font></div>
<br />
<br />
<div align="left" style="text-align:left;"><font face="Lucida Grande" size="+0" color="#000000" style="font-family:Lucida Grande;font-size:10pt;color:#000000;"><b><a href="mailto:NATHANIEL.LINDLEY@spps.org">NATHANIEL.LINDLEY@spps.org</a> on August 14, 2008 at 2:23 PM -0700 wrote:</b></font></div>
<br />
<div align="left" style="text-align:left;"><span style="background-color:#d0d0d0;"><font face="sans-serif" size="+0" color="#000000" style="font-family:sans-serif;font-size:12pt;color:#000000;">Can someone point me in the right direction for pushing/automating Open Directory binding with Casper Remote or policy? &#160;I'm thinking it will be dscl commands on 10.5, but will that work for 10.4? &#160;</font></span><span style="background-color:#d0d0d0;"><font face="Times New Roman" size="+0" color="#000000" style="font-family:Times New Roman;font-size:12pt;color:#000000;"> </font></span></div>
<div align="left" style="text-align:left;"><span style="background-color:#d0d0d0;"><font face="sans-serif" size="+0" color="#000000" style="font-family:sans-serif;font-size:12pt;color:#000000;">We need to remove current OD bindings from clients and then create a new OD binding on a whole bunch-o-machines.</font></span><span style="background-color:#d0d0d0;"><font face="Times New Roman" size="+0" color="#000000" style="font-family:Times New Roman;font-size:12pt;color:#000000;"> </font></span></div>
<br />
<div align="left" style="text-align:left;"><span style="background-color:#d0d0d0;"><font face="sans-serif" size="+0" color="#000000" style="font-family:sans-serif;font-size:12pt;color:#000000;">Thanks,</font></span><span style="background-color:#d0d0d0;"><font face="Times New Roman" size="+0" color="#000000" style="font-family:Times New Roman;font-size:12pt;color:#000000;"> </font></span></div>
<div align="left" style="text-align:left;"><span style="background-color:#d0d0d0;"><font face="sans-serif" size="+0" color="#000000" style="font-family:sans-serif;font-size:12pt;color:#000000;">-Nathaniel</font></span><span style="background-color:#d0d0d0;"><font face="Times New Roman" size="+0" color="#000000" style="font-family:Times New Roman;font-size:12pt;color:#000000;"> </font></span></div>
<br />
<div align="left" style="text-align:left;"><span style="background-color:#d0d0d0;"><font face="sans-serif" size="+0" color="#000000" style="font-family:sans-serif;font-size:12pt;color:#000000;">SPPS</font></span><span style="background-color:#d0d0d0;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:12pt;color:#000000;">_______________________________________________</font></span></div>
<div align="left" style="text-align:left;"><span style="background-color:#d0d0d0;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:12pt;color:#000000;">Casper mailing list</font></span></div>
<div align="left" style="text-align:left;"><span style="background-color:#d0d0d0;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:12pt;color:#000000;"><a href="mailto:Casper@list.jamfsoftware.com">Casper@list.jamfsoftware.com</a></font></span></div>
<div align="left" style="text-align:left;"><span style="background-color:#d0d0d0;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:12pt;color:#000000;"><a href="http://list.jamfsoftware.com/mailman/listinfo/casper" target="_blank">http://list.jamfsoftware.com/mailman/listinfo/casper</a></font></span></div>
<br />
</body>
</html>