Item13939: Switch to turn off LDAP referrals
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: LdapContrib
Branches: master
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