From 7be9cb029fc50e70fd828a07b25a2c00a1426a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Skrz=C4=99tnicki?= Date: Thu, 19 Sep 2024 16:23:31 +0200 Subject: [PATCH] Increase login length limit to 128 characters --- lib/utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/utils.go b/lib/utils/utils.go index b1931e2ae8cf4..6bc38f682a770 100644 --- a/lib/utils/utils.go +++ b/lib/utils/utils.go @@ -333,7 +333,7 @@ func IsValidUnixUser(u string) bool { // '\t', etc.). Note that using a slash ('/') may break the default algorithm for the // definition of the user's home directory. - const maxUsernameLen = 32 + const maxUsernameLen = 128 if len(u) > maxUsernameLen || len(u) == 0 || u[0] == '-' { return false }