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>
This commit is contained in:
Aaron Klotz 2024-06-26 14:19:43 -06:00
parent 5f177090e3
commit b292f7f9ac

View File

@ -124,7 +124,7 @@ type Session struct {
//
// 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
}