AFP548 Changing the world one server at a time.

Command line: add a computer to a OD computergroup

Home › Forums › OS X Server and Client Discussion › Open Directory › Command line: add a computer to a OD computergroup

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

    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)

    #371562
    luke
    Participant

    Maybe you need to add the $, but have to escape it or else the shell will eat it instead of passing it as part of the argument. I believe a \$ will escape it in bash, so try dhcp57-145\$.

    In dscl, are you able to use that same command if you go into the dscl shell first?

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