apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47501] New: [ldap] Setting LDAP_OPT_REFHOPLIMIT fails with OpenLDAP
Date Thu, 09 Jul 2009 11:19:19 GMT

           Summary: [ldap] Setting LDAP_OPT_REFHOPLIMIT fails with
           Product: APR
           Version: HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: PatchAvailable
          Severity: major
          Priority: P2
         Component: APR-util
        AssignedTo: bugs@apr.apache.org
        ReportedBy: alexey.v.varlamov@gmail.com

Created an attachment (id=23948)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23948)
Suggested fix to the problem.

apr_ldap_set_option() incorrectly handles setting LDAP_OPT_REFHOPLIMIT with
OpenLDAP, see the patch attached. The reason is that OpenLDAP does define the
LDAP_OPT_REFHOPLIMIT (under comment /* private and experimental options */
/* OpenLDAP specific options */) but apparently does support setting it.
(Tried with latest v2.4.16 of OpenLDAP).

This appears to be broken since revision 640388 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=640388
), as a result LDAP
authentication in trunk HTTPD does not work with OpenLDAP, the following error
is logged:
[Thu Jul 09 11:05:18 2009] [debug] util_ldap.c(381): Setting referral hop limit
to 5.
[Thu Jul 09 11:05:18 2009] [debug] util_ldap.c(389): Unable to set
LDAP_OPT_REFHOPLIMIT option to 5: -1.
[Thu Jul 09 11:05:18 2009] [warn] [client] [8816] auth_ldap
authenticate: user user1 authentication failed; URI /private [Unable to set
LDAP_OPT_REFHOPLIMIT.][Can't contact LDAP server], referer:

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org

View raw message