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());