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/05/12 19:15:24 UTC

DO NOT REPLY [Bug 34897] - cannot mix LDAP and local users....

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=34897>.
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=34897





------- Additional Comments From anthony.atkins@vt.edu  2005-05-12 19:15 -------
Okay.  A colleague of mine (Dave Hawes, dhawes@vt.edu) supplied the following patch:

== BEGIN PATCH ==
--- mod_auth_ldap.c     Fri Feb  4 15:21:18 2005
+++ mod_auth_ldap.c     Fri Mar 25 17:08:32 2005
@@ -1074,8 +1074,10 @@

 static void mod_auth_ldap_register_hooks(apr_pool_t *p)
 {
+    static const char * const aszPost[] = { "mod_auth.c", NULL };
+
     ap_hook_post_config(auth_ldap_post_config,NULL,NULL,APR_HOOK_MIDDLE);
-    ap_hook_check_user_id(mod_auth_ldap_check_user_id, NULL, NULL,
APR_HOOK_MIDDLE);
+    ap_hook_check_user_id(mod_auth_ldap_check_user_id, NULL, aszPost,
APR_HOOK_MIDDLE);
     ap_hook_auth_checker(mod_auth_ldap_auth_checker, NULL, NULL, APR_HOOK_MIDDLE);
 }

== END PATCH ==

The patch forces mod_auth to load after mod_auth_ldap, which in conjunction with
the AuthLDAPAuthoritative allows for a combination of LDAP and .htpasswd users
in the same context.

I realize that this isn't appropriate for the code base at large, as there are
many other mixtures of auth that people use, but hopefully it will help someone
in a similar circumstance who's searching for bugs.

This might be considered a feature request, but it's difficult to see how the
AuthLDAPAuthoritative directive is meaningful if you have to go so far out of
the way to use it.  Maybe a global directive to control the order in which auth
modules load is in order.

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