use req.user var for username

This commit is contained in:
Sebastian Hugentobler 2018-02-27 15:05:17 +01:00
parent 90f4ac4cff
commit b59c12fd70

View File

@ -12,7 +12,7 @@ function auth_passdb_lookup(req)
ldap_bind_password,
ldap_use_tls))
local username = req.username
local username = req.user
local ldap_pass_filter = "{{ getenv "LDAP_PASS_FILTER" }}"
local ldap_pass_filter_formatted = ldap_pass_filter:gsub("%%u", username)
local ldap_base_dn = "{{ getenv "LDAP_BASE_DN" }}"