2020-10-31 20:16:58 +00:00
|
|
|
|
2020-10-30 23:02:27 +00:00
|
|
|
module.exports = Self => {
|
|
|
|
Self.remoteMethod('syncAll', {
|
|
|
|
description: 'Synchronizes user database with LDAP and Samba',
|
|
|
|
http: {
|
2020-10-31 20:16:58 +00:00
|
|
|
path: `/syncAll`,
|
2020-10-30 23:02:27 +00:00
|
|
|
verb: 'PATCH'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
Self.syncAll = async function() {
|
2020-11-12 22:20:25 +00:00
|
|
|
await Self.app.models.AccountConfig.syncUsers();
|
2020-10-30 23:02:27 +00:00
|
|
|
};
|
|
|
|
};
|