Knew it must have been easier.. Thank you!!
-----Original Message----- From: Emmanuel Lécharny [mailto:[email protected]] Sent: Tuesday, January 29, 2013 5:52 AM To: [email protected] Subject: Re: Fastest way to get Entry when you have the String DN 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
