auth-filters: do not crash on nil username
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
这个提交包含在:
父节点
93a2c33051
当前提交
c4d23d02ec
@ -106,7 +106,7 @@ local lualdap = require("lualdap")
|
|||||||
|
|
||||||
function gentoo_ldap_user_groups(username, password)
|
function gentoo_ldap_user_groups(username, password)
|
||||||
-- Ensure the user is alphanumeric
|
-- Ensure the user is alphanumeric
|
||||||
if username:match("%W") then
|
if username == nil or username:match("%W") then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户