mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
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:
parent
5f177090e3
commit
b292f7f9ac
@ -124,7 +124,7 @@ type Session struct {
|
|||||||
//
|
//
|
||||||
// The current OS thread's access token must have SeTcbPrivilege.
|
// 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) {
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user