Item13939: Switch to turn off LDAP referrals

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: LdapContrib
Branches: master
Reported By: ArthurGouros
Waiting For:
Last Change By: MichaelDaum
Nice to see there is functionality to handle LDAP referrals in ldapContrib, however it would be even nicer if there was a switch to turn off that feature.

Currently with 2.0.3 I'm seeing my LDAP query successfully getting its data but then going off chasing a referral which the MicroSoft admins have misconfigured resulting in a error code being returned, then weird stuff happening according to the Apache logs resulting in a failed login.

I have a workaround for now but I'd rather see a switch in the config.

Thanks, Arthur.

-- ArthurGouros - 03 Feb 2016

Would you mind to share your patch?

-- MichaelDaum - 03 Feb 2016

Hi Michael,

I didn't actually patch the code, I just tricked the ldap referral into returning nothing using external means.

What would be good to see in this module would be a parameter in LocalSite.cfg that looks like this:

Foswiki::cfg{Ldap}{IgnoreReferrals} = 0;

This would preserve existing functionality and allow people with sites like mine that return the correct data in the first ldap query to set it to a value of 1 and prevent ldap from doing any further lookups.

Thanks, Arthur.

-- ArthurGouros - 03 Feb 2016

 
Topic revision: r5 - 22 Apr 2016, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy