Show in the logs if group sync is disabled

This commit is contained in:
Johannes Zellner
2020-06-04 12:40:28 +02:00
parent 91f506c17b
commit c30734f7f3
+4 -1
View File
@@ -129,7 +129,10 @@ function ldapGroupSearch(externalLdapConfig, options, callback) {
assert.strictEqual(typeof options, 'object');
assert.strictEqual(typeof callback, 'function');
if (!externalLdapConfig.syncGroups) return callback(null, []);
if (!externalLdapConfig.syncGroups) {
debug('Group sync is disabled');
return callback(null, []);
}
getClient(externalLdapConfig, function (error, client) {
if (error) return callback(error);