From ad72a8a92971f7fc99af8a35cf68ade914131084 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 6 Mar 2020 13:05:31 -0800 Subject: [PATCH] Add comment --- src/ldap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()));