Comments (6)
Eric Rauer said:
Can this be handled by setting the context referral property to follow when creating the context? That should allow the jndi code to handle the referrals instead of passing the referral exception. See the jndi tutorial for more info, http://java.sun.com/products/jndi/tutorial/ldap/referral/jndi.html .
from spring-ldap-migrate-issues.
Mattias Hellborg Arthursson said:
Yes, that should work with most LDAP servers (and btw you can specify this property using the baseEnvironmentPropertes property of ContextSource if your server does support it). Doesn’t work for Active Directory however, as AD is unable to automatically follow referrals. On AD you’ll need to do the work yourself.
from spring-ldap-migrate-issues.
Claus Ibsen said:
Is this new information something that should be added to the reference doc (if not already there)?
from spring-ldap-migrate-issues.
Mattias Hellborg Arthursson said:
I’m not sure if this is even a problem that can be addressed from inside the framework. We keep on moving it forward; maybe we should just close it with Won’t Fix…
from spring-ldap-migrate-issues.
Nate Moser said:
See LDAP-136. After correcting for the DN parsing issue common to all entries returned from referrals with the JNDI context set to Context.REFERRAL==“follow”, I was able to successfully follow referrals between Active Directory 2003 servers. It sounds like original intent of this issue was to be able to use the Context.REFERRAL == “throw” setting, where ReferralExceptions are thrown, caught, and manually traversed. This allows for conditional processing of results (e.g., discard any results from ldap://someserver.example.com:389) and changing the bind credentials before connecting to the referral context. Admittedly, this would be a bit difficult to achieve within LdapTemplate.
Also worth noting that when the context is set follow referrals, AD does not return the PartialResultsException that org.springframework.ldap.core.LdapTemplate#setIgnorePartialResultException is used to skip. However, you will either need to set your client host to use a DNS server holding entries for the spurious zones and configuration referrals returned by AD, e.g.
search referenceref: ldap://ForestDnsZones.TEST.COM/DC=ForestDnsZones,DC=TEST,DC=COM
search referenceref: ldap://DomainDnsZones.TEST.COM/DC=DomainDnsZones,DC=TEST,DC=COM
search referenceref: ldap://TEST.COM/CN=Configuration,DC=TEST,DC=COM
or use the Global Catalog server (port 3268).
from spring-ldap-migrate-issues.
Mattias Hellborg Arthursson said:
Thanks Nate for the elaborate explanation on this. With the resolution of LDAP-136, this issue is actually to be considered solved as well. Setting the referral method to “follow” really should be the way to go about this, and the library should now support that fully.
from spring-ldap-migrate-issues.
Related Issues (20)
- LDAP-324: Update to Gradle 2.3
- LDAP-325: Update poms
- LDAP-326: Run Spring IO Checks Against Latest Snapshot
- LDAP-327: Correct spring-ldap-core-tiger module name in README HOT 1
- LDAP-328: DirtiesContext for Integration Tests where Order Matters
- LDAP-329: Update Dependency Versions
- LDAP-330: Support for Spring Data Commons 1.10 (Fowler)
- LDAP-331: Reference Not Deployed
- LDAP-332: Update to Gradle 2.4
- LDAP-333: Support Spring Data Gosling
- LDAP-334: Support Spring Platform 2.0
- LDAP-335: NoClassDefFoundError: RepositoryConfigurationExtension
- LDAP-336: Remove usage of internal class sun.misc.BASE64Encoder. HOT 2
- LDAP-337: Allow project to be build with Java 8. HOT 1
- LDAP-338: support property placeholders for (integer) properties in ldap xml configuration
- LDAP-339: Upgrade Spring Data Commons to 1.11 for upcoming Spring Data 3.4 (Gosling) release
- LDAP-340: Upgrade ApacheDS to 1.5.7
- LDAP-341: Incompatibility between Spring LDAP 2.0.4.RELEASE and Spring Data Rest 2.4.0.RELEASE (Gosling) HOT 8
- LDAP-342: Support Spring Data REST
- LDAP-343: DirContextAdapter incorrectly throws IllegalArgumentException when adding Name attributes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-ldap-migrate-issues.