JNDIPrincipalStore getObject() method bug ?

Thomas Bellembois <[email protected]>
Newsgroups gmane.comp.jakarta.slide.devel
Message-ID <[email protected]>
Hello,

Watching my LDAP server logs I have observed requests where all of the 
attributes are retrieved.
These requests are resource consuming...

This is due to the getObjet() method :
...
        SearchControls controls = new SearchControls();
        controls.setSearchScope( searchScope );
...

I have added :

controls.setReturningAttributes( descriptorAttributes );

to retrieve only attributes defined in the Domain.xml file.

Is it a bug or is it needed to retrieve all of the attributes ?

Regards,

Thomas

-- 
......oO( Thomas Bellembois )Oo......
CRI - University of Rennes 1 (France)
http://esup-portail.org
.....................................
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.