Bug 892631
Summary: | When user log in to UserPortal(or UserLevelAPI) then user_name of this user is changed. | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Ondra Machacek <omachace> | ||||
Component: | ovirt-engine | Assignee: | Ravi Nori <rnori> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ondra Machacek <omachace> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.1.0 | CC: | dyasny, iheim, ipilcher, lpeer, pstehlik, Rhev-m-bugs, sgrinber, yeylon, ykaul, yzaslavs | ||||
Target Milestone: | --- | ||||||
Target Release: | 3.2.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | infra | ||||||
Fixed In Version: | sf4 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | Type: | Bug | |||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 915537 | ||||||
Attachments: |
|
Description
Ondra Machacek
2013-01-07 13:23:08 UTC
link : http://gerrit.ovirt.org/#/c/10869/ change id : I072f9aa8dc706533682b53d8b5a56e9b2dc09b82 Created attachment 693596 [details]
Backport upstream patch to RHEV 3.1
One thing to note is that my backported patch (and presumably the upstream patch) will cause the case of the domain portion of the username to change to lower case -- i.e. rhevadmin becomes rhevadmin. The use of upper case seems to be fairly traditional with Kerberos realms and Active Directory domains, so it seems like it might be a good idea to upper-case the domain (and possibly even "fix" any usernames that have somehow been lower-cased). For example: private String getFullUserName(AdUser adUser) { String userName = adUser.getUserName(); int i = userName.indexOf('@'); if (i >= 0) { userName = userName.substring(0, i); } return userName + "@" + adUser.getDomainControler().toUpperCase(); } (In reply to comment #5) > One thing to note is that my backported patch (and presumably the upstream > patch) will cause the case of the domain portion of the username to change > to lower case -- i.e. rhevadmin becomes rhevadmin. After rebuilding with the patch from comment #4 and running for a while, I've noticed that *something* has upper-cased the domain portion of my usernames -- both in the database and as returned by the REST API. So it doesn't look like any additional jiggery pokery is necessary on that front. 3.2 has been released 3.2 has been released 3.2 has been released |