You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/09/08 21:56:12 UTC

DO NOT REPLY [Bug 36564] New: - make mod_ldap really universal

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