Change By: Milan Divilek (06/Jun/13 12:02 PM)
Description: Our ldap module support {{Context.REFERRAL}} ("java.naming.referral") property which indicate to the service providers how to handle referrals.

"When the LDAP service provider receives a referral despite your having set Context.REFERRAL to "ignore", it will throw a PartialResultException
(in the API reference documentation)  to indicate that more results might be forthcoming if the referral is followed. In this case, the server does not support the Manage Referral control and is supporting referral updates in some other way." http://docs.oracle.com/javase/jndi/tutorial/ldap/referral/jndi.html

For example Manage Referral control is not supported by Windows Active Directory.

But javax.naming.NamingEnumeration has two methods for determines if enumeration contains more elements {{java.util.Enumeration.nextElement()}} and {{javax.naming.NamingEnumeration.next()}}. {{next()}} method throw {{javax.naming.NamingException}} so also {{PartialResultException}} when server does not support the Manage Referral control, but {{nextElement()}} doesn't throw this exception and works with entry which is in different subtree then the one used as initialSearchAttributes. This behaviour is same for {{java.util.Enumeration.nextElement()}} and {{javax.naming.NamingEnumeration.next()}}.

So we introduce new configuration property {{allowPartialResults}} (Configuration-modules/ldap/config/allowPartialResults). Property indicates which methods will be used. When property is set to true then hasMoreElements() and nextElement() methods are used. If property is set to false then hasMore() and next() are used. By default property is set to false.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to