Summary: | make mod_ldap really universal | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Ondrej Sury <ondrej> |
Component: | mod_ldap | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | RESOLVED LATER | ||
Severity: | enhancement | Keywords: | MassUpdate |
Priority: | P5 | ||
Version: | 2.0.54 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other | ||
URL: | http://modvhostldap.alioth.debian.org/ |
Description
Ondrej Sury
2005-09-08 21:56:12 UTC
I'm not sure what it is that you would want to enhance. The API name might be a little misleading for your purpose but the functionality is still exactly what you want, isn't it? Wouldn't the implementation of util_ldap_cache_find just end up being: LDAP_DECLARE(int) util_ldap_cache_find(request_rec *r, util_ldap_connection_t *ldc, const char *url, const char *basedn, int scope, char **attrs, const char *filter, const char **binddn, const char ***retvals) { return util_ldap_cache_getuserdn(r, ldc, url, basedn, scope, attrs, filter, binddn, retvals); } You're right that it's pure cosmetic issue, I am merely talking about these lines: util_ldap.c:1057 ldc->reason = "ldap_search_ext_s() for user failed with server down"; util_ldap.c:1064 ldc->reason = "ldap_search_ext_s() for user failed"; util_ldap.c:1076 ldc->reason = "User not found"; util_ldap.c:1078 ldc->reason = "User is not unique (search found two or more matches)"; Maybe simple replace user to entry will do the trick? (I think snprintf warnings are overkill :-) I thought about: renaming util_ldap_cache_getuserdn to util_ldap_cache_find, replacing user to entry and creating: LDAP_DECLARE(int) util_ldap_cache_userdn(request_rec *r, util_ldap_connection_t *ldc, const char *url, const char *basedn, int scope, char **attrs, const char *filter, const char **binddn, const char ***retvals) { return util_ldap_cache_find(r, ldc, url, basedn, scope, attrs, filter, binddn, retvals); } *** In fact it's just my feeling doing something wrong when using getuserdn, so I would welcome to clean it a bit, but I would not protest if you just close it as WONTFIX bug. Ondrej Please help us to refine our list of open and current defects; this is a mass update of old and inactive Bugzilla reports which reflect user error, already resolved defects, and still-existing defects in httpd. As repeatedly announced, the Apache HTTP Server Project has discontinued all development and patch review of the 2.2.x series of releases. The final release 2.2.34 was published in July 2017, and no further evaluation of bug reports or security risks will be considered or published for 2.2.x releases. All reports older than 2.4.x have been updated to status RESOLVED/LATER; no further action is expected unless the report still applies to a current version of httpd. If your report represented a question or confusion about how to use an httpd feature, an unexpected server behavior, problems building or installing httpd, or working with an external component (a third party module, browser etc.) we ask you to start by bringing your question to the User Support and Discussion mailing list, see [https://httpd.apache.org/lists.html#http-users] for details. Include a link to this Bugzilla report for completeness with your question. If your report was clearly a defect in httpd or a feature request, we ask that you retest using a modern httpd release (2.4.33 or later) released in the past year. If it can be reproduced, please reopen this bug and change the Version field above to the httpd version you have reconfirmed with. Your help in identifying defects or enhancements still applicable to the current httpd server software release is greatly appreciated. |