Add comment
This commit is contained in:
+2
-2
@@ -284,7 +284,7 @@ function mailboxSearch(req, res, next) {
|
|||||||
res.end();
|
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();
|
var domain = req.dn.rdns[0].attrs.domain.value.toLowerCase();
|
||||||
|
|
||||||
mailboxdb.listMailboxes(domain, 1, 1000, function (error, result) {
|
mailboxdb.listMailboxes(domain, 1, 1000, function (error, result) {
|
||||||
@@ -318,7 +318,7 @@ function mailboxSearch(req, res, next) {
|
|||||||
|
|
||||||
finalSend(results, req, res, next);
|
finalSend(results, req, res, next);
|
||||||
});
|
});
|
||||||
} else {
|
} else { // new sogo
|
||||||
mailboxdb.listAllMailboxes(1, 1000, function (error, mailboxes) {
|
mailboxdb.listAllMailboxes(1, 1000, function (error, mailboxes) {
|
||||||
if (error) return next(new ldap.OperationsError(error.toString()));
|
if (error) return next(new ldap.OperationsError(error.toString()));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user