Hello,

I was tinkering over the weekend with mod_authz_dbd and mysql, and i could not 
get a RequireAny/RequireAll to match on multiple Require dbd-group statements. 
It would always match only the last result from the query, but once for every 
row in the resultset.

Example:
        <LocationMatch "/(?<name>[^/]+)/">
                <RequireAny>
                        Require         user %{env:MATCH_NAME}
                        Require         dbd-group %{env:MATCH_NAME}
                        Require         dbd-group Administrators
                </RequireAny>
        </LocationMatch>

After some searching, it appeared to me to be a regression of this:
https://bz.apache.org/bugzilla/show_bug.cgi?id=46421

I’ve attached a patch (slightly modified from the original so that no warnings 
are generated during build), would someone be able to verify if I did not 
introduce any segfault/memory leak or anything?

Attachment: httpd-2.4.12.mod_authz_dbd-regression.patch
Description: Binary data


Thanks,

Michel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to