about summary refs log tree commit diff stats
path: root/filters/gentoo-ldap-authentication.lua
diff options
context:
space:
mode:
Diffstat (limited to 'filters/gentoo-ldap-authentication.lua')
-rw-r--r--filters/gentoo-ldap-authentication.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/filters/gentoo-ldap-authentication.lua b/filters/gentoo-ldap-authentication.lua index c1e382f..3b6564b 100644 --- a/filters/gentoo-ldap-authentication.lua +++ b/filters/gentoo-ldap-authentication.lua
@@ -106,7 +106,7 @@ local lualdap = require("lualdap")
106 106
107function gentoo_ldap_user_groups(username, password) 107function gentoo_ldap_user_groups(username, password)
108 -- Ensure the user is alphanumeric 108 -- Ensure the user is alphanumeric
109 if username:match("%W") then 109 if username == nil or username:match("%W") then
110 return nil 110 return nil
111 end 111 end
112 112