Mercurial > prosody-modules
diff mod_auth_ldap/mod_auth_ldap.lua @ 3098:a81456a13797
mod_client_proxy: a Jabber Address Translation implementation
author | Jonas Wielicki <jonas@wielicki.name> |
---|---|
date | Sun, 03 Jun 2018 13:55:10 +0200 |
parents | 4b10636bd743 |
children | 5c3f3f5a4377 |
line wrap: on
line diff
--- a/mod_auth_ldap/mod_auth_ldap.lua Sun Jun 03 01:34:23 2018 +0200 +++ b/mod_auth_ldap/mod_auth_ldap.lua Sun Jun 03 13:55:10 2018 +0200 @@ -35,9 +35,18 @@ local success, iterator, invariant, initial = pcall(ld[method], ld, ...); if not success then ld = nil; return nil, iterator, "search"; end + module:log("debug", "success = %s, invariant = %s", + tostring(success), + tostring(invariant)); + local success, dn, attr = pcall(iterator, invariant, initial); + module:log("debug", "success = %s, dn = %s, attr = %s", + tostring(success), + tostring(dn), + tostring(attr)); if not success then ld = nil; return success, dn, "iter"; end + return dn, attr, "return"; end