[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Finding all DNs in an organizationalUnit



> I would like to get a list of the DNs with the attribute (? I am very
> new to this) ou=Groups but using "(ou=Groups)" or even
> "(cn=*,ou=Groups)" returns nothing.

> Can anybody see what I'm doing wrong?

The attributes in a DN are not searchable in LDAPv2.  

I'd have the search base set to "ou=Groups,o=University of Sheffield,c=GB", the scope set to 
"one" and the filter "(objectclass=rfc822mailgroup)" for a finial LDAP search of:

ldapsearch -s one -b "ou=Groups,o=University of Sheffield,c=GB" "(objectclass=rfc822mailgroup)" cn

I hope this helps.

SaS