Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Using dsconfigldap to bind to OD #375672
    sirlucks
    Participant

    I know this post is 2 years old but if anybody was still interested, I have put a script to help make things easier.

    [code]
    #!/bin/sh
    ###### bind to Open Directory Server ########
    # Luciano M. Rodriguez | [email protected]
    #######################################

    ### Description ###
    # The purpose of this script is to
    # add the OD SERVER to Directory Access

    computerid=`scutil –get ComputerName`

    dsconfigldap -f -v -a OD.SERVER.COM -c $computerid -u ODADMINNAME -p ODADMINPASSWORD -v
    sleep 20

    dscl /Search -create / SearchPolicy CSPSearchPath
    dscl /Search -append / CSPSearchPath /LDAPv3/OD.SERVER.COM

    ### Alaways exit with 0 status
    exit 0
    [/code]

    [b]You will have to change ODADMINNAME, ODADMINPASSWORD, and OD.SERVER.COM to fit your info.[/b]

    I know this makes things easier for me when mass joining computers to my network. If you also have developer tools, you can make an install package and deploy it with that. 🙂 Hope this helps.

Viewing 1 post (of 1 total)