Le 19/02/2018 à 15:18, Kevin Hale Boyes a écrit :
> On Sat, Feb 17, 2018 at 5:57 AM, Emmanuel Lécharny <elecha...@gmail.com>
> wrote:
> 
>> Hi,
>>
> 
> Thanks for your help!
> 
>> When I iterate over the results and inspect the attributes of an entry
>>> I don't find the operational attributes.
>>
>> Weird. You hsould have them.
>>
>> You can try using ALL_OPERATIONAL_ATTRIBUTES instead of
>> ALL_ATTRIBUTES_ARRAY to see if it's any better.
> 
> 
> When I give just ALL_OPERATIONAL_ATTRIBUTES the call is successful but
> there are no attributes in the Entry.
> What ended up helping is listing all the attribute names.
> While that's not ideal it makes some sense for my application because it's
> only prepared to deal with certain attributes anyway.

That is an option. It will work.



> 
> 
>> Actually, Studio uses the API, so it should work.
>>
> 
> I was looking at the source code for Studio and, while it's a lot to
> absorb, I thought it also used JNDI calls.

It defaults to use teh API, but if you tell it to use JNDI, it will.


> So what I did was write a test program using JNDI and see if I could get
> the operational attributes that way.
> It didn't work either.  I'm able to get the same set of attributes as using
> the API library.

Ok, so it seems that your LDAP server does not properly handle the
special "+" attribute.

Which server it is ?

> 
> I might not go that far since I have a working solution of specifying all
> attribute names.
> 
> Thanks for you time and effort!!

My plaisure.

-- 
Emmanuel Lecharny

Symas.com
directory.apache.org

Reply via email to