Restore logic to not index records by login if hostname is already defined.
@@ -322,7 +322,10 @@ public class KsmClient {
if (!confService.getMatchUserRecordsByDomain())
domain = null;
- // Store the login by username and 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);
}
