From b46008f0b1c97f7d448d70d964d42233a9a615c9 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 5 May 2016 00:26:40 -0700 Subject: [PATCH] add sendmail ou bind this will be used by haraka to authenticate the apps --- src/ldap.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ldap.js b/src/ldap.js index 6fe3a8b49..e1c72cb54 100644 --- a/src/ldap.js +++ b/src/ldap.js @@ -134,6 +134,13 @@ function start(callback) { }); }); + // this is the bind for the mail addon to authorize apps + gServer.bind('ou=sendmail,dc=cloudron', function(req, res, next) { + // TODO: validate password + debug('application bind: %s', req.dn.toString()); + res.end(); + }); + gServer.bind('ou=apps,dc=cloudron', function(req, res, next) { // TODO: validate password debug('application bind: %s', req.dn.toString());