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
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: httpd
Version: 6.2
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: Zbysek MRAZ
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)
Last Closed: 2013-02-21 10:17:14 UTC
Target Upstream Version:

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

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

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

How reproducible:

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:
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.


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