Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
ghx-label-12
Description
When checking that the session user matches the user authenticated on the connection, the usernames compared include the client hostname and the realm
if (!connection_username.empty() && session_->connected_user != connection_username) { return Status::Expected(TErrorCode::UNAUTHORIZED_SESSION_USER, connection_username, session_->connected_user); }
This can result in exceptions like so:
The user authorized on the connection 'hue/gateway0.xyz.site@XYZ.SITE' does not match the session username 'hue/gateway1.xyz.site@XYZ.SITE'
We should convert these to short name before comparing.