LDAP sync
This commit is contained in:
@@ -50,7 +50,7 @@ function applyIntegrationForm(data) {
|
||||
document.getElementById('ldap_lastNameAttribute').value =
|
||||
ldap.lastNameAttribute ?? '';
|
||||
document.getElementById('ldap_syncIntervalMinutes').value = String(
|
||||
ldap.syncIntervalMinutes ?? 1440,
|
||||
ldap.syncIntervalMinutes ?? 0,
|
||||
);
|
||||
|
||||
const tv = data.teamviewer || {};
|
||||
@@ -87,7 +87,12 @@ async function run() {
|
||||
const btn = document.getElementById('btn-ldap-sync-now');
|
||||
btn.disabled = true;
|
||||
try {
|
||||
await apiPost('/ldap/sync', {});
|
||||
const r = await apiPost('/ldap/sync', {});
|
||||
if (r.errors && r.errors.length) {
|
||||
alert(r.errors.join('\n'));
|
||||
} else if (r.ok === false && r.error) {
|
||||
alert(r.error);
|
||||
}
|
||||
location.reload();
|
||||
} catch (err) {
|
||||
alert(err.message || String(err));
|
||||
|
||||
Reference in New Issue
Block a user