Mercurial > prosody-modules
comparison mod_lib_ldap/ldap.lib.lua @ 868:0017518c94a0
Change singlematch to search subtrees
author | Rob Hoelz <rob@hoelz.ro> |
---|---|
date | Mon, 10 Dec 2012 22:14:03 +0100 |
parents | 16b007c7706c |
children | ec791fd8ce87 |
comparison
equal
deleted
inserted
replaced
867:a93cb608db2c | 868:0017518c94a0 |
---|---|
205 | 205 |
206 function _M.singlematch(query) | 206 function _M.singlematch(query) |
207 local ld = _M.getconnection(); | 207 local ld = _M.getconnection(); |
208 | 208 |
209 query.sizelimit = 1; | 209 query.sizelimit = 1; |
210 query.scope = 'onelevel'; | 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 return attribs; | 213 return attribs; |
214 end | 214 end |
215 end | 215 end |