mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
d7962e3bcf
Our current workaround made the user check too lax, thus allowing deleted users. This patch adds a helper function to winutil that checks that the uid's SID represents a valid Windows security principal. Now if `lookupUserFromID` determines that the SID is invalid, we simply propagate the error. Updates https://github.com/tailscale/tailscale/issues/869 Signed-off-by: Aaron Klotz <aaron@tailscale.com>
14 lines
406 B
Go
14 lines
406 B
Go
// Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package winutil
|
|
|
|
const regBase = ``
|
|
|
|
func getRegString(name, defval string) string { return defval }
|
|
|
|
func getRegInteger(name string, defval uint64) uint64 { return defval }
|
|
|
|
func isSIDValidPrincipal(uid string) bool { return false }
|