directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <>
Subject Re: Fastest way to get Entry when you have the String DN
Date Tue, 29 Jan 2013 10:51:41 GMT
Le 1/29/13 11:38 AM, a écrit :
> Hi,
> We've been getting an entry from a String DN by constructing DN and Rdn objects, creating
a search request, SearchCursor, then loop the response for the single entry.
> If I have the DN  uid=123,ou=foo,o=bar   Is there a more exact way in the API to get
the Entry (without searching) if we already have a LdapConnection and valid String DN?

Entry entry = connection.lookup( DN );

Simple, fast, easy :)

Emmanuel Lécharny 

View raw message