| |
@@ -137,7 +137,7 @@
|
| |
raise Unauthorized("REMOTE_USER is not properly set in the request.")
|
| |
|
| |
# Remove the realm
|
| |
- username, _ = remote_user.split("@")
|
| |
+ username = remote_user.split("@")[0]
|
| |
|
| |
# If the user is part of the whitelist, then the group membership check is skipped
|
| |
if username in conf.allowed_users:
|
| |
Whatever the REMOTE_USER has realm like someone@REALM, it is safe to just
return the first element from value returned from split.
Signed-off-by: Chenxiong Qi cqi@redhat.com