use req.user var for username
This commit is contained in:
parent
90f4ac4cff
commit
b59c12fd70
@ -12,7 +12,7 @@ function auth_passdb_lookup(req)
|
|||||||
ldap_bind_password,
|
ldap_bind_password,
|
||||||
ldap_use_tls))
|
ldap_use_tls))
|
||||||
|
|
||||||
local username = req.username
|
local username = req.user
|
||||||
local ldap_pass_filter = "{{ getenv "LDAP_PASS_FILTER" }}"
|
local ldap_pass_filter = "{{ getenv "LDAP_PASS_FILTER" }}"
|
||||||
local ldap_pass_filter_formatted = ldap_pass_filter:gsub("%%u", username)
|
local ldap_pass_filter_formatted = ldap_pass_filter:gsub("%%u", username)
|
||||||
local ldap_base_dn = "{{ getenv "LDAP_BASE_DN" }}"
|
local ldap_base_dn = "{{ getenv "LDAP_BASE_DN" }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user