diff --git a/src/ldap.js b/src/ldap.js index 8098a13a3..426f0fed1 100644 --- a/src/ldap.js +++ b/src/ldap.js @@ -284,7 +284,7 @@ function mailboxSearch(req, res, next) { res.end(); } }); - } else if (req.dn.rdns[0].attrs.domain) { + } else if (req.dn.rdns[0].attrs.domain) { // legacy ldap mailbox search for old sogo var domain = req.dn.rdns[0].attrs.domain.value.toLowerCase(); mailboxdb.listMailboxes(domain, 1, 1000, function (error, result) { @@ -318,7 +318,7 @@ function mailboxSearch(req, res, next) { finalSend(results, req, res, next); }); - } else { + } else { // new sogo mailboxdb.listAllMailboxes(1, 1000, function (error, mailboxes) { if (error) return next(new ldap.OperationsError(error.toString()));