debug: authenticateMailbox

This commit is contained in:
Girish Ramakrishnan
2018-02-08 18:49:27 -08:00
parent 6decc790d6
commit 83ff295f6d
+2
View File
@@ -418,6 +418,8 @@ function authorizeUserForApp(req, res, next) {
}
function authenticateMailbox(req, res, next) {
debug('mailbox auth: %s (from %s)', req.dn.toString(), req.connection.ldap.id);
if (!req.dn.rdns[0].attrs.cn) return next(new ldap.NoSuchObjectError(req.dn.toString()));
var email = req.dn.rdns[0].attrs.cn.value.toLowerCase();