Reputation: 10672
I am looking for a ldap query which return only Organizational Unit which are direct descendent of Domain
For example: I have ADDOMAIN01
which contains OUSales
which has a child OU OUAutoMobiles
. The issue is that when I search
(&(objectCategory=organizationalunit))
it returns all OUs including OUAutomobiles
, and I want only top level OUs just OUSales
.
Also: if I want OUs of only OUSales
not of entire Domain, what should be the query?
Thanx
Upvotes: 0
Views: 313
Reputation: 72680
When you write a SEARCH in LDAP you give :
subtree
, nor base
)With LDIFDE.EXE it's -p option
JP
Upvotes: 1