# HG changeset patch # User Kim Alvefur # Date 1395756694 -3600 # Node ID ab638f6b53dc41187d57e289a6239b0161b49fa8 # Parent 985bfc6e8cad13b8f98eb6167d888228da8cf137 mod_auth_ldap: Fix issue with some versions of LuaLDAP diff -r 985bfc6e8cad -r ab638f6b53dc mod_auth_ldap/mod_auth_ldap.lua --- a/mod_auth_ldap/mod_auth_ldap.lua Sat Mar 29 22:56:24 2014 +0700 +++ b/mod_auth_ldap/mod_auth_ldap.lua Tue Mar 25 15:11:34 2014 +0100 @@ -21,14 +21,14 @@ local function get_user(username) module:log("debug", "get_user(%q)", username); - return ld:search({ + for dn, attr in ld:search({ base = ldap_base; scope = ldap_scope; filter = ldap_filter:gsub("%$(%a+)", { user = ldap_filter_escape(username); host = host; }); - })(); + }) do return dn, attr; end end local provider = {};