create a new ou for addons
This commit is contained in:
@@ -141,19 +141,21 @@ function start(callback) {
|
|||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
// this is the bind for the mail addon to authorize apps
|
// this is the bind for addons (after bind, they might search and authenticate)
|
||||||
gServer.bind('ou=recvmail,dc=cloudron', function(req, res, next) {
|
gServer.bind('ou=addons,dc=cloudron', function(req, res, next) {
|
||||||
// TODO: validate password
|
// 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();
|
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) {
|
gServer.bind('ou=apps,dc=cloudron', function(req, res, next) {
|
||||||
// TODO: validate password
|
// TODO: validate password
|
||||||
debug('application bind: %s', req.dn.toString());
|
debug('application bind: %s', req.dn.toString());
|
||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// this is the bind for users
|
||||||
gServer.bind('ou=users,dc=cloudron', function(req, res, next) {
|
gServer.bind('ou=users,dc=cloudron', function(req, res, next) {
|
||||||
debug('user bind: %s', req.dn.toString());
|
debug('user bind: %s', req.dn.toString());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user