Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 57632 invoked from network); 12 May 2005 17:17:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 May 2005 17:17:25 -0000 Received: (qmail 54868 invoked by uid 500); 12 May 2005 17:19:47 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 54811 invoked by uid 500); 12 May 2005 17:19:46 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 54771 invoked by uid 99); 12 May 2005 17:19:46 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 12 May 2005 10:19:46 -0700 Received: by ajax.apache.org (Postfix, from userid 99) id 5AA91320; Thu, 12 May 2005 19:15:24 +0200 (CEST) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: DO NOT REPLY [Bug 34897] - cannot mix LDAP and local users.... X-Bugzilla-Reason: AssignedTo Message-Id: <20050512171524.5AA91320@ajax.apache.org> Date: Thu, 12 May 2005 19:15:24 +0200 (CEST) X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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