GUACAMOLE-1661: Restore logic to not index records by login if hostname is already defined.

This commit is contained in:
James Muehlner
2022-08-24 19:03:16 +00:00
parent e0a9364dde
commit 2b997a9992

View File

@@ -322,8 +322,11 @@ public class KsmClient {
if (!confService.getMatchUserRecordsByDomain())
domain = null;
// Store the login by username and domain
addRecordForLogin(record, username, domain);
// Store based on login ONLY if no hostname (will otherwise
// result in ambiguous entries for servers tied to identical
// accounts)
if (hostname == null)
addRecordForLogin(record, username, domain);
}