AFP548 Changing the world one server at a time.

Command line: add a computer to a OD computergroup

Home › Forums › Software › InstaDMG › Command line: add a computer to a OD computergroup

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #371482
    kvschep
    Participant

    I posted this on the Open Directory forum, does anyone here have any ideas?

    kvschep wrote:

    I am trying to add a computer to an OD ComputerGroup (to use in a package for InstaDMG :))

    The closest I can come is using dseditgroup:

    dseditgroup -o edit -n /LDAPv3/mydirectory.domain.edu -u diradmin -p -a dhcp57-145 -t computer ManagedClients

    I get:
    ERROR: A Directory Service error occured.
    -12136: eDSRecordNotFound

    I have tried adding a $ on the end of my client name (because it appears there in WGM)

    I have also tried using dscl:

    dscl -append /ComputerGroups/ManagedClients GroupMembership dhcp57-145

    I get:
    append: Invalid Path
    DS Error: -14009 (eDSUnknownNodeName)

    #371936
    kvschep
    Participant

    Thanks!

    The only additional information that I needed was how to authenticate to my OD, here is what the command lookes like:

    dscl -u diradmin -P password /LDAPv3/dir.domain.com append /ComputerGroups/ManagedClients GroupMembership mac18979$

    and a similar command for the GroupMembers

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