GithubHelp home page GithubHelp logo

Comments (6)

rwinch avatar rwinch commented on June 15, 2024

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.

rwinch avatar rwinch commented on June 15, 2024

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.

rwinch avatar rwinch commented on June 15, 2024

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.

rwinch avatar rwinch commented on June 15, 2024

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.

rwinch avatar rwinch commented on June 15, 2024

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 reference

ref: ldap://ForestDnsZones.TEST.COM/DC=ForestDnsZones,DC=TEST,DC=COM

search reference

ref: ldap://DomainDnsZones.TEST.COM/DC=DomainDnsZones,DC=TEST,DC=COM

search reference

ref: ldap://TEST.COM/CN=Configuration,DC=TEST,DC=COM

or use the Global Catalog server (port 3268).

from spring-ldap-migrate-issues.

rwinch avatar rwinch commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.