|
|
|
module.exports = Self => {
|
|
Self.remoteMethod('syncAll', {
|
|
description: 'Synchronizes user database with LDAP and Samba',
|
|
http: {
|
|
path: `/syncAll`,
|
|
verb: 'PATCH'
|
|
}
|
|
});
|
|
|
|
Self.syncAll = async function() {
|
|
await Self.app.models.AccountConfig.syncUsers();
|
|
};
|
|
};
|