Allow admins to access all apps

Fixes #420
This commit is contained in:
Girish Ramakrishnan
2017-11-15 18:07:10 -08:00
parent 5663cf45f8
commit 1babfb6e87
4 changed files with 40 additions and 30 deletions
+2 -2
View File
@@ -479,13 +479,13 @@ function start(callback) {
gServer.compare('cn=admins,ou=groups,dc=cloudron', groupAdminsCompare);
// this is the bind for addons (after bind, they might search and authenticate)
gServer.bind('ou=addons,dc=cloudron', function(req, res, next) {
gServer.bind('ou=addons,dc=cloudron', function(req, res /*, next */) {
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) {
gServer.bind('ou=apps,dc=cloudron', function(req, res /*, next */) {
// TODO: validate password
debug('application bind: %s', req.dn.toString());
res.end();