Software /
code /
prosody-modules
Comparison
mod_lib_ldap/ldap.lib.lua @ 871:e4a03e58f896
Log and return failure if user record not found in bind
author | Rob Hoelz <rob@hoelz.ro> |
---|---|
date | Mon, 10 Dec 2012 22:16:18 +0100 |
parent | 870:13e645340767 |
child | 877:cd2262969d2e |
comparison
equal
deleted
inserted
replaced
870:13e645340767 | 871:e4a03e58f896 |
---|---|
186 }; | 186 }; |
187 | 187 |
188 if who then | 188 if who then |
189 who = who.dn; | 189 who = who.dn; |
190 module:log('debug', '_M.bind - who: %s', who); | 190 module:log('debug', '_M.bind - who: %s', who); |
191 else | |
192 module:log('debug', '_M.bind - no DN found for username = %s', username); | |
193 return nil, format('no DN found for username = %s', username); | |
191 end | 194 end |
192 | 195 |
193 local conn, err = ldap.open_simple(params.hostname, who, password, params.use_tls); | 196 local conn, err = ldap.open_simple(params.hostname, who, password, params.use_tls); |
194 | 197 |
195 if conn then | 198 if conn then |