httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 44302] AuthLDAPURL does not accept ldapi:// urls
Date Tue, 12 Feb 2013 20:59:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44302

--- Comment #3 from Stephane Chazelas <stephane.chazelas@gmail.com> ---
I've checked the code of various versions of apache and apr-util including the
latest ones (2.4.3 / 1.5.1).

While the newer apr-util has a new apr_ldap_is_ldapi_url function, it is not
used by mod_authnz_ldap.

apr_ldap_url_parse_ext, which is called by mod_auth_ldap_parse_url, does
extract the URL scheme (and explicitely cares for ldapi, though parses the
socket path as a host:port and stores it in a field called lud_host), however
mod_authnz_ldap doesn't make use of it. It just compares the start of the URL
by itself with "ldaps" and assumes "ldap" if it doesn't match which explains
why ldapi:// URLs are treated as ldap://localhost ones (default host is
"localhost" for "ldap").

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message