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

searching for all entries with a particular dn



Hi,

I'm looking for a search filter syntax returning all entries grouped by a particular dn.

Example: you have all your relatives grouped in ou=family,ou=private,ou=groups,dn=domain,dn=org

How do you search for the email addresses of them?

(ou=family) does not return any entry:

$ ldapsearch -x -h ldap -b dc=berdmann,dc=de "(ou=family)" mail
# extended LDIF
#
# LDAPv3
# base <dc=berdmann,dc=de> with scope sub
# filter: (ou=family)
# requesting: mail
#

# family, private, groups, berdmann.de
dn: ou=family,ou=private,ou=groups,dc=berdmann,dc=de

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1