diff 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
parents 0017518c94a0
children 13e645340767
line wrap: on
line diff
--- a/mod_lib_ldap/ldap.lib.lua	Mon Dec 10 22:14:03 2012 +0100
+++ b/mod_lib_ldap/ldap.lib.lua	Mon Dec 10 22:14:28 2012 +0100
@@ -210,6 +210,7 @@
     query.scope     = 'subtree';
 
     for dn, attribs in ld:search(query) do
+        attribs.dn = dn;
         return attribs;
     end
 end