Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.