Home Forums OS X Server and Client Discussion Open Directory Adding to Open Directory Group via Command Line

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #375013
    vogtstev
    Participant

    Greetings! This may be a silly question. Our school has traditionally just used OpenDirectory for authentication and contacts and we’ve never actually needed to bind our clients. I would like to automate more management tasks and I have been able to successfully bind my clients through directory utility. I am wondering if I can take this two steps farther:

    How do I bind via command line? ( I think I know the answer to this one)
    How do I add a computer to a specific computer list or computer group on the OpenDirectory server?

    Thanks for any input!!
    Steve

    PS – Sorry if this has been covered. I’ve been googling, but may be using bad terminology. Also feel free to point me to a reference if I’ve missed something.

    #375017
    macinandy
    Participant

    Hi Steve, this article may be what you’re looking for, for the binding part anyway.

    Cheers

    #375188
    tlarkin
    Participant

    You can take a look at my script to bind clients. In my master image the client is bound to the ODM, but we want all building level clients to bind to their specific Replica. So I have a script that removes the ODM and then rebinds to the Replica. It is a post script that runs at first boot after imaging is done.

    [url]http://tlarkin.com/tech/shell-script-remove-clients-bindings-old-server-and-then-bind-them-new-directory-server[/url]

    To add a computer you should use Work Group Manager. If you want to do it from the command line or script it, check out the [color=Blue]dscl[/color] command.

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

Comments are closed