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 828896 - mod_authnz_ldap unable to set environment variables for authorize only
Summary: mod_authnz_ldap unable to set environment variables for authorize only
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: httpd
Version: 6.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: Zbysek MRAZ
URL:
Whiteboard:
Depends On:
Blocks: 1038276
TreeView+ depends on / blocked
 
Reported: 2012-06-05 14:46 UTC by Marcus Sundberg
Modified: 2013-12-04 19:14 UTC (History)
3 users (show)

Fixed In Version: httpd-2.2.15-17.el6
Doc Type: Enhancement
Doc Text:
Clone Of:
: 1038276 (view as bug list)
Environment:
Last Closed: 2013-02-21 10:17:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch to add setting of AUTHORIZE_* CGI vars to mod_authnz_ldap (5.65 KB, patch)
2012-06-05 14:46 UTC, Marcus Sundberg
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0512 0 normal SHIPPED_LIVE Low: httpd security, bug fix, and enhancement update 2013-02-20 21:29:30 UTC

Description Marcus Sundberg 2012-06-05 14:46:23 UTC
Created attachment 589543 [details]
Patch to add setting of AUTHORIZE_* CGI vars to mod_authnz_ldap

Description of problem:
mod_authnz_ldap has the ability to set environment variables
from received LDAP attributes. Unfortunately these can only
be set by LDAP authentication, not by LDAP authorization.

This is very unfortunate when integrating Apache with for example
Active Directory, or any other directory server using Kerberos,
because you want to use the HTTP Negotiate authentication to get
single sign on, but still use LDAP for authorization and user
information.

Version-Release number of selected component (if applicable):
httpd-2.2.15-15.el6

How reproducible:
Always

Steps to Reproduce:
1. Setup httpd with Kerberos (or any other non-LDAP) authentication and LDAP authorization.
2. Use a AuthLDAPURL parameter requesting multiple LDAP attributes.

Actual results:
No environment variables are set for configured LDAP attributes.

Expected results:
Environment variables are set for all configured LDAP attributes.

Additional info:
This feature has already been implemented upstream in httpd 2.4 and later:
http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_authnz_ldap.c?r1=949335&r2=949336
http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_authnz_ldap.c?r1=949672&r2=949673
but unfortunately not for the 2.2 branch.

The attached patch implements setting of AUTHORIZE_* environment variables
for httpd 2.2.15

Comment 2 Joe Orton 2012-06-08 12:01:01 UTC
I don't see a problem with adding this - thanks for doing the backport, Marcus.

Comment 3 RHEL Program Management 2012-07-10 08:31:06 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 4 RHEL Program Management 2012-07-10 23:23:20 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 9 errata-xmlrpc 2013-02-21 10:17:14 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.

http://rhn.redhat.com/errata/RHSA-2013-0512.html


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