# HG changeset patch # User Kim Alvefur # Date 1396438253 -7200 # Node ID 90bde50b3915fa5ab86623078582383157397b2b # Parent ab638f6b53dc41187d57e289a6239b0161b49fa8 mod_auth_ldap: Limit results in user lookup query to 1 diff -r ab638f6b53dc -r 90bde50b3915 mod_auth_ldap/mod_auth_ldap.lua --- a/mod_auth_ldap/mod_auth_ldap.lua Tue Mar 25 15:11:34 2014 +0100 +++ b/mod_auth_ldap/mod_auth_ldap.lua Wed Apr 02 13:30:53 2014 +0200 @@ -24,6 +24,7 @@ for dn, attr in ld:search({ base = ldap_base; scope = ldap_scope; + sizelimit = 1; filter = ldap_filter:gsub("%$(%a+)", { user = ldap_filter_escape(username); host = host;