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 1242503 - Add support for Microsoft User Principal Name in SSLUserName
Summary: Add support for Microsoft User Principal Name in SSLUserName
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: httpd
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Luboš Uhliarik
QA Contact: Martin Frodl
Lenka Špačková
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-13 12:55 UTC by Jan Pazdziora
Modified: 2021-01-14 09:34 UTC (History)
5 users (show)

Fixed In Version: httpd-2.4.6-38.el7
Doc Type: Enhancement
Doc Text:
Apache HTTP Server now supports UPN Names stored in the `subject alternative name` portion of SSL/TLS client certificates, such as the Microsoft User Principle Name, can now be used from the SSLUserName directive and are now available in *mod_ssl* environment variables. Users can now authenticate with their Common Access Card (CAC) or certificate with a UPN in it, and have their UPN used as authenticated user information, consumed by both the access control in Apache and using the `REMOTE_USER` environment variable or a similar mechanism in applications. As a result, users can now set `SSLUserName SSL_CLIENT_SAN_OTHER_msUPN_0` for authentication using UPN.
Clone Of:
Environment:
Last Closed: 2015-11-19 04:38:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
backport of latest patch from trunk (14.44 KB, patch)
2015-08-18 12:26 UTC, Jan Kaluža
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2194 0 normal SHIPPED_LIVE httpd bug fix and enhancement update 2015-11-19 08:05:27 UTC

Description Jan Pazdziora 2015-07-13 12:55:20 UTC
Description of problem:

Apache HTTP Server will get support for retrieving Microsoft User Principal Name in mod_ssl codebase, per http://mail-archives.apache.org/mod_mbox/httpd-dev/201507.mbox/browser. That makes it possible for the user to authenticate with their CAC or certificate which UPN in it, and have their UPN used as authenticated user information, and consumed by both the access control in Apache, and via REMOTE_USER or similar mechanism in applications.

It'd be good to have at least the part that allows

  SSLUserName SSL_CLIENT_SAN_OTHER_msUPN_0

backported to Apache in RHEL 7.

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

mod_ssl-2.4.6-31.el7.x86_64

How reproducible:

Deterministic.

Steps to Reproduce:
1. Have client certificate with UPN attribute set to user.
2. Configure authentication via client SSL certificate and set

  SSLVerifyClient require
  SSLUserName SSL_CLIENT_SAN_OTHER_msUPN_0

3. Restart httpd, authenticate with that certificate.
4. Check the request in ssl_access_log.

Actual results:

10.11.12.13 - - [13/Jul/2015 ...

and ssl_error_log complaining

Failed to set r->user to 'SSL_CLIENT_SAN_OTHER_msUPN_0'

Expected results:

10.11.12.13 - user [13/Jul/2015 ...

Additional info:

Comment 3 Joe Orton 2015-08-05 08:00:01 UTC
Thanks for sending this upstream, Jan!

Now upstream as: https://svn.apache.org/r1693792

Comment 4 Jan Kaluža 2015-08-18 12:26:36 UTC
Created attachment 1064303 [details]
backport of latest patch from trunk

Comment 14 errata-xmlrpc 2015-11-19 04:38:24 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/RHBA-2015-2194.html


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