Comparison

mod_lib_ldap/ldap.lib.lua @ 869:ec791fd8ce87

Return DN in the attributes table with singlematch
author Rob Hoelz <rob@hoelz.ro>
date Mon, 10 Dec 2012 22:14:28 +0100
parent 868:0017518c94a0
child 870:13e645340767
comparison
equal deleted inserted replaced
868:0017518c94a0 869:ec791fd8ce87
208 208
209 query.sizelimit = 1; 209 query.sizelimit = 1;
210 query.scope = 'subtree'; 210 query.scope = 'subtree';
211 211
212 for dn, attribs in ld:search(query) do 212 for dn, attribs in ld:search(query) do
213 attribs.dn = dn;
213 return attribs; 214 return attribs;
214 end 215 end
215 end 216 end
216 217
217 _M.filter = {}; 218 _M.filter = {};