[Date Prev][Date Next]
Re: ldapsearch using dn= as the filter returns no results.
> "dn=<something>" is not a valid filter because "dn" is not an attribute
> name. If you already know the DN to search for, then what you need is a
> "read", i.e. a search with base=the DN and scope="base". But this
> question is off-topic here.
That makes sense, and solves my problem, thanks.
I apologize if I was off-topic, but I believed I was on-topic by reading
the description from OpenLDAP's page:
"This mailing list is for technical discussions of use topics specific
to OpenLDAP Software (as well as JLDAP and JDBC-LDAP). All users of
OpenLDAP Software should subscribe to this list. This list can have a
high volume of messages."
Pierangelo Masarati wrote:
Eclipse WebMaster (Denis Roy) wrote:
After Googling this for about an hour, I decided to post here. If I
issue the following command:
$> ldapsearch -x -LLL "uid=droy"
cn: Denis Roy
However, if I try a search using my DN, I can never get a result:
ldapsearch -x -LLL "dn=uid=droy,ou=people,dc=eclipse,dc=org"
I'm writing a Perl application where I have the user's DN, and need
their mail address. Unfortunately, perl's ldap->search using the DN as
a filter behaves the same way.
Any help or pointers on how to search for entries based on the DN
would be appreciated!
"dn=<something>" is not a valid filter because "dn" is not an attribute
name. If you already know the DN to search for, then what you need is a
"read", i.e. a search with base=the DN and scope="base". But this
question is off-topic here.
SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497
Eclipse WebMaster - email@example.com
Questions? Consult the FAQ at http://www.eclipse.org/webmaster/faq.html
View my status at http://www.eclipse.org/webmaster/main.html