RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1131847 - authzprovideralias and authnprovideralias-defined provider can't be used in virtualhost .
Summary: authzprovideralias and authnprovideralias-defined provider can't be used in v...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: httpd
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Luboš Uhliarik
QA Contact: Martin Frodl
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-20 07:11 UTC by Sébastien Andreatta
Modified: 2021-01-14 09:32 UTC (History)
7 users (show)

Fixed In Version: httpd-2.4.6-26.el7
Doc Type: Bug Fix
Doc Text:
Cause: Server config of mod_authn_core and mod_authz_core modules was not merged across the different config file sections. Consequence: Providers defined in AuthnProviderAlias and AuthzProviderAlias we not usable under in virtual hosts. Fix: Server config is now merged properly for mod_authn_core and mod_authz_core modules. Result: Providers defined in AuthnProviderAlias and AuthzProviderAlias can be used under in virtual hosts.
Clone Of:
Environment:
Last Closed: 2015-03-05 07:13:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch for mod_authn_core (973 bytes, text/plain)
2014-08-20 07:11 UTC, Sébastien Andreatta
no flags Details
Patch for mod_authz_corez (977 bytes, patch)
2014-08-25 09:05 UTC, Sébastien Andreatta
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0325 0 normal SHIPPED_LIVE Low: httpd security, bug fix, and enhancement update 2015-03-05 11:59:16 UTC

Description Sébastien Andreatta 2014-08-20 07:11:46 UTC
Created attachment 928658 [details]
Patch for mod_authn_core

Description of problem:


Version-Release number of selected component (if applicable):

httpd-2.4.6-18
mod_ldap-2.4.6-18

How reproducible:

Always


Steps to Reproduce:
1. Install httpd
2. Install openldap server
3. Configure openldap server and create groups and user
4. Configure apache with a vhost and add Ldap Auth with provider ( example : http://pastebin.com/VvvmYHPj )
5. Restart apache and try to login 

Actual results:

Unable to login 

[Wed Aug 20 08:05:20.751473 2014] [authz_core:error] [pid 25021] [client 91.179.47.14:49557] AH02305: no alias provider found for 'cn=yyy,ou=Groups,o=zzz.com' (BUG?)

Expected results:

No error 

[Wed Aug 20 08:56:27.941321 2014] [authnz_ldap:debug] [pid 28681] mod_authnz_ldap.c(501): [client 91.179.47.14:57326] AH01691: auth_ldap authenticate: using URL ldap://localhost/ou=Users,o=soez,dc=soez,dc=be?uid??, referer: https://soez.be/transmission/web/
[Wed Aug 20 08:56:27.941344 2014] [authnz_ldap:debug] [pid 28681] mod_authnz_ldap.c(593): [client 91.179.47.14:57326] AH01697: auth_ldap authenticate: accepting Crupuk, referer: https://soez.be/transmission/web/

Additional info:

Patch already exist in httpd master branch

diff -up ./httpd.spec.orig ./httpd.spec
--- ./httpd.spec.orig   2014-08-20 00:36:28.075540540 +0200
+++ ./httpd.spec        2014-08-20 00:35:59.212539493 +0200
@@ -73,6 +73,8 @@ Patch57: httpd-2.4.6-ldaprefer.patch
 Patch58: httpd-2.4.6-r1507681+.patch
 Patch59: httpd-2.4.6-r1556473.patch
 Patch60: httpd-2.4.6-r1553540.patch
+Patch61: httpd-2.4.6-r1618851.patch
+Patch62: httpd-2.4.6-r1556818.patch
 # Security fixes
 Patch200: httpd-2.4.6-CVE-2013-6438.patch
 Patch201: httpd-2.4.6-CVE-2014-0098.patch
@@ -214,6 +216,8 @@ rm modules/ssl/ssl_engine_dh.c
 %patch58 -p1 -b .r1507681+
 %patch59 -p1 -b .r1556473
 %patch60 -p1 -b .r1553540
+%patch61 -p1 -b .r1618851
+%patch62 -p1 -b .r1556818

 %patch200 -p1 -b .cve6438
 %patch201 -p1 -b .cve0098
@@ -652,6 +656,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_sysconfdir}/rpm/macros.httpd

 %changelog
+* Tue Aug 19 2014 Sebastien Andreatta <crupuk> - 2.4.6-19.el7.centos
+- httpd: fix authzprovideralias
+- httpd: fix authnprovideralias
+
 * Wed Jul 23 2014 Johnny Hughes <johnny> - 2.4.6-18.el7.centos
 - Roll in CentOS Branding

Comment 2 Sébastien Andreatta 2014-08-25 09:05:28 UTC
Created attachment 930390 [details]
Patch for mod_authz_corez

Comment 11 errata-xmlrpc 2015-03-05 07:13:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0325.html


Note You need to log in before you can comment on or make changes to this bug.