directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <>
Subject Re: [JNDI] Getting the Directory Context From a Binding?
Date Tue, 12 Jun 2007 07:58:48 GMT

in Studio we don't use the
methods. The reason is that JNDI performs magic LDAP request when using 
this methods. JNDI tries to find out if the object in LDAP is a Java object.

Instead we just use the
  search(String name, String filter, SearchControls cons)
method because it gives full control which LDAP request is performed 
against the server. With the SearchControls you can exactly specify the 
search scope (object, one level, subtree), the returned attributes, the 
count and time limits. However with that method you just get the 
SearchResult objects containing the LDAP attributes, there is no 
LDAP->Object mapping when using this method.

You could take a look to the JNDIConnectionContext class, it does all 
the I/O to the directory.
(It is not documented yet and we are on the way to refactor the 
connection part of the Studio)

Hope that help,

Ole Ersoy wrote:

> OK Cool - I can always hunt through the LS code base and see how it's 
> done there.  At least I know someone is doing it :-)
> Cheers,
> - Ole

View raw message