apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60972] apr_ldap_url.c:apr_ldap_url_parse_ext() 1.6.x captures port in hostname parsing LDAP URL
Date Wed, 12 Apr 2017 01:48:53 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60972

Peter Payne <apr20170412@was.me.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Peter Payne <apr20170412@was.me.uk> ---
This affects mod_authnz_ldap.c which calls apr_ldap_url_parse().

Bug was found because of trace message in this module:

  auth_ldap url parse: `%s', Host: %s, Port: %d, DN: %s, attrib: %s, scope: %s,
filter: %s, connection mode: %s

.. which illustrated that the LDAP URL was capturing the port number into the
host.

For example, the following configuration will fail:

  AuthLDAPURL
"LDAP://myserver.com:389/DC=myserver,DC=com?accountname?sub?(objectcategory=CN=Person,CN=Schema,CN=Configuration,DC=myserver,DC=com)"

.. with a log message:

  Host: myserver.com:339, Port: 339, DN: DC=myserver,DC=com, attrib:
accountname, scope: subtree, filter:...

Whereas the following configuration will succeed:

  AuthLDAPURL
"LDAP://myserver.com/DC=myserver,DC=com?accountname?sub?(objectcategory=CN=Person,CN=Schema,CN=Configuration,DC=myserver,DC=com)"

-- 
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


Mime
View raw message