I think you are better off using a shell script personally. However, you can take my script and use the [color=Red]do shell script[/color] command in Apple Script if you so desire.
[code]#!/bin/sh
#This script binds a 10.4.11 or 10.5 client to an LDAP (OD) server.
#please input your FQDN after the newserver variable
newserver=”server.domain.com”
#now binding to new server
/usr/sbin/dsconfigldap -a $newserver
/usr/bin/dscl localhost -create /Search SearchPolicy dsAttrTypeStandard:CSPSearchPath
/usr/bin/dscl localhost -merge /Search CSPSearchPath /LDAPv3/$newserver
/usr/bin/dscl localhost -create /Contact SearchPolicy dsAttrTypeStandard:CSPSearchPath
/usr/bin/dscl localhost -merge /Contact CSPSearchPath /LDAPv3/$newserver[/code]
Comments are closed