Domain extraction from REMOTE_USER name should allow for '@' in username

Bug #1213842 reported by Henry Nash
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Henry Nash

Bug Description

The ExternalDomain support in REMOTE_USER expects to find an '@' character in the username as the delineator between the name and domain. However, if the username were to contain an '@' itself, the current code breaks. A simple change would be to only extract the domain name to the right of the "rightmost '@' character".

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/42660

Changed in keystone:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/42660
Committed: http://github.com/openstack/keystone/commit/c70a784e0addef10765e2425e6e3c53be2a33a7e
Submitter: Jenkins
Branch: master

commit c70a784e0addef10765e2425e6e3c53be2a33a7e
Author: Henry Nash <email address hidden>
Date: Mon Aug 19 16:04:44 2013 +0100

    Ensure username passed by REMOTE_USER can contain '@'

    The external authentication support allows the domain to be passed
    as part of the REMOTE_USER name, by using the '@' as a delineator,
    but did not handle the case when the actual username itself also
    contained the '@' character.

    Fixes bug 1213842

    Change-Id: Idffa42fe9c70818c71379669dfcd17d3113738a3

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: havana-3 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.