From b292f7f9ac318b0cf8b7200f859631dac78ee7cb Mon Sep 17 00:00:00 2001 From: Aaron Klotz Date: Wed, 26 Jun 2024 14:19:43 -0600 Subject: [PATCH] util/winutil/s4u: fix incorrect token type specified in s4u Login This was correct before, I think I just made a copy/paste error when updating that PR. Updates #12383 Signed-off-by: Aaron Klotz --- util/winutil/s4u/s4u_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/winutil/s4u/s4u_windows.go b/util/winutil/s4u/s4u_windows.go index c217f5fba..ea3828a79 100644 --- a/util/winutil/s4u/s4u_windows.go +++ b/util/winutil/s4u/s4u_windows.go @@ -124,7 +124,7 @@ const ( // // The current OS thread's access token must have SeTcbPrivilege. func Login(logf logger.Logf, srcName string, u *user.User, capLevel CapabilityLevel) (sess *Session, err error) { - token, err := createToken(srcName, u, tokenTypeIdentification, capLevel) + token, err := createToken(srcName, u, tokenTypeImpersonation, capLevel) if err != nil { return nil, err }