httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36564] New: - make mod_ldap really universal
Date Thu, 08 Sep 2005 19:56:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36564>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36564

           Summary: make mod_ldap really universal
           Product: Apache httpd-2.0
           Version: 2.0.53
          Platform: Other
               URL: http://modvhostldap.alioth.debian.org/
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: mod_ldap
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: ondrej@sury.org


Hi,

documentation for mod_ldap says:
--cut here--
LDAP connection pooling and result caching services for use by other LDAP modules
This module was created to improve the performance of websites relying on
backend connections to LDAP servers. In addition to the functions provided by
the standard LDAP libraries, this module adds an LDAP connection pool and an
LDAP shared memory cache.
--cut here--

But the truth is that mod_ldap is specialized to supply functions for
mod_auth_ldap and doesn't have any universal function with other modules can use.

Therefor I had to abuse util_ldap_cache_getuserdn, while I am really looking up
for virtual host from LDAP:

--cut here--
    apr_snprintf(filtbuf, FILTER_LENGTH,
"(&(%s)(|(apacheServerName=%s)(apacheServerAlias=%s)))", cfg->filter,
r->hostname, r->hostname);

    result = util_ldap_cache_getuserdn(r, ldc, cfg->url, cfg->basedn,
cfg->scope, attributes, filtbuf, &dn, &vals);
--cut here--

This is ugly, because error messages could get quite confusing.

I hope we can agree that this should be improved to create more universal
function (util_ldap_cache_find?) and change util_ldap_cache_getuserdn to use
this more universal function.

Thanks,
Ondrej.

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

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


Mime
View raw message