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 <aaron@tailscale.com>
pull/12605/head
Aaron Klotz 4 days ago
parent 5f177090e3
commit b292f7f9ac

@ -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
}

Loading…
Cancel
Save