Home Forums OS X Server and Client Discussion Open Directory Applescript for binding clients to OD

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #375174
    effects
    Participant

    I was looking for an applescript that would enable me to bind my clients to my OS X server for authentication and contacts. It would be nice to have this, so I could push it out through ARD.

    Thanks!

    #375189
    tlarkin
    Participant

    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]

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed