directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <elecha...@gmail.com>
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, Carlo.Accorsi@ibs-ag.com 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 


Mime
View raw message