directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cimballi <cimballi.cimba...@gmail.com>
Subject Re: [OT] JNDI search and types only
Date Tue, 30 Aug 2005 07:43:06 GMT
Maybe the "setReturningObjFlag" is for the hability of JNDI to map
entry to real Java Object (via bind and lookup) and this flag let you
return the object or only the classname.

Cimballi


On 8/29/05, Alex Karasulu <aok123@bellsouth.net> wrote:
> Jérôme Baumgarten wrote:
> 
> >Thanks Cimballi.
> >
> >
> >
> >>There is a poperty to fix in order to return only attributes names :
> >>env.put("java.naming.ldap.typesOnly", "true");
> >>More information here :
> >>http://java.sun.com/products/jndi/tutorial/ldap/misc/index.html
> >>
> >>
> >
> >So I guess there's a bug in org.apache.ldap.server.protocol.SearchHandler
> >line 89 : controls.setReturningObjFlag( req.getTypesOnly() );
> >these two properties are totally different and the following should be added :
> >
> >
> Yes there is some ambiguity in fact with JNDI here.  I've been trying to
> figure this out for some time now.   That is the relationship between
> the SearchControls returningObjFlag property and the environment
> property "java.naming.ldap.typesOnly".  I have searched far and wide for
> a better understanding about this.  I think the best way for us to
> understand this is to capture the ASN.1 generated to comprehend the
> final effects of setting these properties.
> 
> With respect to the SearchHandler I don't have enough information at
> this point to conclude which way is correct.  I guess we just need to do
> some experimentation with the SUN JNDI provider to see the effects of
> these properties on the generated ASN.1 requests.
> 
> <snip/>
> 
> Alex

Mime
View raw message