Add ability to trigger external ldap syncer task

This commit is contained in:
Johannes Zellner
2019-08-29 17:22:39 +02:00
parent 8c44e558a8
commit 426d2aab09
3 changed files with 23 additions and 0 deletions

View File

@@ -1379,6 +1379,15 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
});
};
Client.prototype.startExternalLdapSync = function (callback) {
post('/api/v1/cloudron/sync_external_ldap', {}, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 202) return callback(new ClientError(status, data));
callback(null);
});
};
Client.prototype.setUserActive = function (userId, active, callback) {
var data = {
active: active