it is req not reg

This commit is contained in:
Sebastian Hugentobler 2018-02-27 15:15:24 +01:00
parent b59c12fd70
commit 16fe330177

View File

@ -29,7 +29,7 @@ function auth_passdb_lookup(req)
local app_pass_filter = "{{ getenv "LDAP_APP_PASSWORDS_FILTER" }}"
local ldap_user_attribute = "{{ getenv "LDAP_USER_ATTRIBUTE" }}"
local user_password = reg.password
local user_password = req.password
for dn, attribs in ld:search { base = app_base_dn_formatted, scope = "subtree", filter = app_pass_filter } do
lualdap.open_simple(