tailscale/ssh/tailssh
Brad Fitzpatrick a4fd4fd845 ssh/tailssh: fix regression after LDAP support
58ab66ec51 added LDAP support
for #4945 by shelling out to getdent.

It was supposed to fall back to the old method when getdent wasn't
found, but some variable name confusion (uid vs username) meant the
old path wasn't calling the right lookup function (user.LookupId
instead of user.Lookup).

Which meant that changed probably also broke FreeBSD and macOS SSH
support in addition to the reported OpenWRT regression.

The gokrazy support didn't look right either.

Fixes #8180

Change-Id: I273bbe96fe98b2517fbf0335fd476b483c051554
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-05-21 07:53:25 -07:00
..
incubator_linux.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
incubator.go ssh/tailssh: close tty on session close 2023-05-18 09:35:42 -07:00
privs_test.go ssh/tailssh: fix privilege dropping on FreeBSD; add tests 2023-03-20 16:09:18 -04:00
tailssh_test.go ssh/tailssh: fix regression after LDAP support 2023-05-21 07:53:25 -07:00
tailssh.go ssh/tailssh: close tty on session close 2023-05-18 09:35:42 -07:00
user.go ssh/tailssh: fix regression after LDAP support 2023-05-21 07:53:25 -07:00