Le 1/29/13 11:38 AM, [email protected] 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 :)


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com 

Reply via email to