1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-04 13:05:23 +02:00

Capture LDAP configuration

This commit is contained in:
sauls8t 2018-09-03 17:36:54 +01:00
parent fd167234ae
commit 1ce7e53398
15 changed files with 647 additions and 714 deletions

View file

@ -106,6 +106,19 @@ export default Service.extend({
}
},
previewLDAP(config) {
if(this.get('sessionService.isAdmin')) {
return this.get('ajax').request(`global/sync/ldap/preview`, {
method: 'POST',
data: JSON.stringify(config)
}).then((response) => {
return response;
}).catch((error) => {
return error;
});
}
},
// Returns product license.
searchStatus() {
if (this.get('sessionService.isGlobalAdmin')) {