directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Carlo.Acco...@ibs-ag.com>
Subject RE: Fastest way to get Entry when you have the String DN
Date Tue, 29 Jan 2013 10:52:59 GMT
Knew it must have been easier.. Thank you!!



-----Original Message-----
From: Emmanuel Lécharny [mailto:elecharny@gmail.com] 
Sent: Tuesday, January 29, 2013 5:52 AM
To: users@directory.apache.org
Subject: Re: Fastest way to get Entry when you have the String DN

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