diff --git a/rootfs/etc/confd/templates/app-passwords-lookup.lua.tmpl b/rootfs/etc/confd/templates/app-passwords-lookup.lua.tmpl index cefd1df..7078b3a 100644 --- a/rootfs/etc/confd/templates/app-passwords-lookup.lua.tmpl +++ b/rootfs/etc/confd/templates/app-passwords-lookup.lua.tmpl @@ -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(