Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

with the following setup, I try to get all users in the de group.

- domain.local (domain)
 - users_and_groups (ou)
  - orga (ou)
   - groups (ou)
    - de (group)

I tried the following commands

dsget group "CN=de,DC=domain,DC=local" -members
dsget group "CN=de,OU=users_and_groups,DC=domain,DC=local" -members
dsget group "CN=de,OU=users_and_groups,OU=orga,DC=domain,DC=local" -members
dsget group "CN=de,OU=users_and_groups,OU=orga,OU=groups,DC=domain,DC=domain,DC=local" -members

But all fail with Directory object not found. What am I doing wrong?

share|improve this question
up vote 3 down vote accepted

The 3rd command is almost correct, but you have the OU parts the wrong way round in your command - you need to specify them in order as if you are moving up through the hierarchy. Try this instead:

dsget group "CN=de,OU=groups,OU=orga,OU=users_and_groups,DC=domain,DC=local" -members
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.