Bug 12296 - AuthLDAPGroup* directives broken
Summary: AuthLDAPGroup* directives broken
Status: CLOSED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Other Modules (show other bugs)
Version: 2.0.40
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL: http://www.snet.net
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2002-09-04 12:55 UTC by Jimmy Forsyth
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
patch for AuthLDAPGroup features (336 bytes, patch)
2002-09-04 13:00 UTC, Jimmy Forsyth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy Forsyth 2002-09-04 12:55:50 UTC
the arguments to util_ldap_cache_compare() are out of order in mod_auth_ldap.c,
so require group directives are not processed properly.

this patch results in correct group functionality:

httpd-ldap/aaa-ldap/mod_auth_ldap.c
546,547c546,547
<                 result = util_ldap_cache_compare(r, ldc, sec->url,
sec->group_attrib_is_dn ? 
< 						 req->dn : req->user, ent[i].name, t);
---
>                 result = util_ldap_cache_compare(r, ldc, sec->url, t,
ent[i].name, 
>                                      sec->group_attrib_is_dn ? req->dn :
req->user);
Comment 1 Jimmy Forsyth 2002-09-04 13:00:13 UTC
Created attachment 2914 [details]
patch for AuthLDAPGroup features
Comment 2 Jimmy Forsyth 2002-09-04 13:01:51 UTC
patch in my initial comments was incorrect, posted attachment to correct
Comment 3 Graham Leggett 2003-01-21 11:35:56 UTC
This patch looks like it has already been applied. If this problem still exists
in v2.0.45-dev, please reopen this bug report.