[Date Prev][Date Next]
Re: ldapsearch using dn= as the filter returns no results.
- To: "Eclipse WebMaster \(Denis Roy\)" <firstname.lastname@example.org>, openldap-software@OpenLDAP.org
- Subject: Re: ldapsearch using dn= as the filter returns no results.
- From: Marc Boorshtein <email@example.com>
- Date: Mon, 21 Mar 2005 11:25:53 -0800 (PST)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=o6bPz/NmcxhNEmvjmo+z2jS8Z+WwchFShcMGtzTzQ8EMB0UimqQFf/eh25TQeQxuzkuBIq/0RjJEGAHkM6AdLv9TDAzo5cUWJ5d2XKKv3pkZWpcfOzvO4ep+BeEQRcwW3cdY0+PeeLQJb3f5+JDGBp9mu7dQHRPq7Nm7OYzGYGk= ;
- In-reply-to: 6667
I would suggest ldapguru.com for general ldap
questions. As for whay your search doesn't work, DN
is not an "attribute" per se. You can't search on it
the way you can search on uid or cn. To get all the
attributes of a user for whom you know the DN, you
would perform a base search, ie:
ldapsearch -b uid=user,dc=domain,dc=com -s base
Some directories include a copy of the dn as an
attribute (such as activedirectory), but you can not
include the DN in a search filter.
--- "Eclipse WebMaster (Denis Roy)"
> After Googling this for about an hour, I decided to
> post here. If I
> issue the following command:
> $> ldapsearch -x -LLL "uid=droy"
> I get:
> dn: uid=droy,ou=people,dc=eclipse,dc=org
> cn: Denis Roy
> However, if I try a search using my DN, I can never
> get a result:
> ldapsearch -x -LLL
> 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!
> Eclipse WebMaster - firstname.lastname@example.org
> Questions? Consult the FAQ at
> View my status at