This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Well, ignorePartialResultException doesn't have any effect on lookups, so that would explain why you get the exception. Now, in this case it is really not interesting for you - after all if you are doing a lookup you're interested in getting the entry, right?

I have very little experience with referrals, but as I understand it if you sett referrals to "follow", the Java LDAP Provider will try to follow the referral, instead returning the referred node. Now, In order to do that it needs to be able to find the referred LDAP server. If, for one reason or the other, this is not possible you will get an error indicating that the referral has not been followed. The reasons may vary, e.g. the server might not be possible to reach from your location, or the referred DNS name might not be possible to resolve.

Comment

I am not exactly sure what this means. I am new to interfacing with LDAP servers, so please elaborate on the above quote.

Thanks,
Sean

The javadoc says:javax.naming.PartialResultException
This exception is thrown to indicate that the result being returned or returned so far is partial, and that the operation cannot be completed. For example, when listing a context, this exception indicates that returned results only represents some of the bindings in the context.
...

In other words, when you're listing or searching but there is a problem with one or more of the results, this exception may be thrown. When you're doing a lookup, you're not listing or searching, you're getting one specific entry. You will either get it or not, it will never be partial.