changeset 1375:90bde50b3915

mod_auth_ldap: Limit results in user lookup query to 1
author Kim Alvefur <zash@zash.se>
date Wed, 02 Apr 2014 13:30:53 +0200
parents ab638f6b53dc
children f4de4a35778d
files mod_auth_ldap/mod_auth_ldap.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;