You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the custom current user lookup function (#52144)
We added this function to mitigate slow user.Current() calls in
Windows Active Directory environments. Go 1.24 ships with an optimized
verison of user.Current, rendering this utility unnecessary.
Closes#41922
Copy file name to clipboardexpand all lines: docs/pages/faq.mdx
+8-5
Original file line number
Diff line number
Diff line change
@@ -78,11 +78,14 @@ are not logged in to Teleport or may not have access to a browser.
78
78
79
79
## `tsh` is very slow on Windows, what to do?
80
80
81
-
If your host machine is joined to an Active Directory domain, you might find user lookups take a
82
-
lot longer than you expect. The number of Active Directory accounts that must be scanned to
83
-
perform a user lookup can cause tsh to hang waiting to get information about the current user.
84
-
To fix this issue, you can use environment variables to set default account information for your
85
-
Teleport user. If you are experiencing long lookup times on Windows, do the following:
81
+
If your host machine is joined to an Active Directory domain, you might find
82
+
user lookups take a lot longer than you expect. If possible, we recommend
83
+
updating `tsh` to v18 or later, which contains an optimized user lookup
84
+
algorithm.
85
+
86
+
If upgrading is not possible, you can use environment variables to set default
87
+
account information for your Teleport user. If you are experiencing long lookup
88
+
times on Windows, do the following:
86
89
87
90
- Either set the `TELEPORT_USER` environment variable or set the `--user` flag to the name of your Teleport user.
88
91
- Either set the `TELEPORT_LOGIN` environment variable or set the `--login` flag to the name of current host user. This setting can be overridden if you open a new SSH session on a machine as a different user.
0 commit comments