From 8543dbe3be8a2e3261e84b90da6b2d8efdeee7d0 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 12 May 2016 13:20:57 -0700 Subject: [PATCH] create a new ou for addons --- src/ldap.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ldap.js b/src/ldap.js index fc402ba2c..db203aa92 100644 --- a/src/ldap.js +++ b/src/ldap.js @@ -141,19 +141,21 @@ function start(callback) { res.end(); }); - // this is the bind for the mail addon to authorize apps - gServer.bind('ou=recvmail,dc=cloudron', function(req, res, next) { + // this is the bind for addons (after bind, they might search and authenticate) + gServer.bind('ou=addons,dc=cloudron', function(req, res, next) { // TODO: validate password - debug('recvmail bind: %s', req.dn.toString()); // note: cn can be email or id + debug('addons bind: %s', req.dn.toString()); // note: cn can be email or id res.end(); }); + // this is the bind for apps (after bind, they might search and authenticate user) gServer.bind('ou=apps,dc=cloudron', function(req, res, next) { // TODO: validate password debug('application bind: %s', req.dn.toString()); res.end(); }); + // this is the bind for users gServer.bind('ou=users,dc=cloudron', function(req, res, next) { debug('user bind: %s', req.dn.toString());