From 2226e46084416c8cf92173e2d8856b5c64cb1bde Mon Sep 17 00:00:00 2001 From: Djalal Harouni Date: Wed, 19 Jun 2024 17:07:31 +0100 Subject: [PATCH] tetragon:username: use login name instead of display name Signed-off-by: Djalal Harouni --- pkg/reader/userdb/userdb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/reader/userdb/userdb.go b/pkg/reader/userdb/userdb.go index c40090b6fc7..14d96dd2ff1 100644 --- a/pkg/reader/userdb/userdb.go +++ b/pkg/reader/userdb/userdb.go @@ -58,7 +58,7 @@ func (cache *UsersDBCache) LookupUser(uid uint32) (string, error) { if err != nil { return "", err } - return userInfo.Name, nil + return userInfo.Username, nil } name, err := cache.lookupUser(uid) @@ -67,7 +67,7 @@ func (cache *UsersDBCache) LookupUser(uid uint32) (string, error) { if err != nil { return "", err } - name = userInfo.Name + name = userInfo.Username cache.addUser(uid, name) } return name, nil