externalldap: reset group source when disabled
This commit is contained in:
+4
-1
@@ -85,7 +85,10 @@ async function setConfig(newConfig, auditSource) {
|
||||
|
||||
await settings.setJson(settings.EXTERNAL_LDAP_KEY, newConfig);
|
||||
|
||||
if (newConfig.provider === 'noop') await users.resetSource(); // otherwise, the owner could be 'ldap' source and lock themselves out
|
||||
if (newConfig.provider === 'noop') {
|
||||
await users.resetSource(); // otherwise, the owner could be 'ldap' source and lock themselves out
|
||||
await groups.resetSource();
|
||||
}
|
||||
|
||||
await eventlog.add(eventlog.ACTION_EXTERNAL_LDAP_CONFIGURE, auditSource, { oldConfig: removePrivateFields(currentConfig), config: removePrivateFields(newConfig) });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user