diff --git a/src/externalldap.js b/src/externalldap.js index 2ee3733de..401e3ea10 100644 --- a/src/externalldap.js +++ b/src/externalldap.js @@ -368,9 +368,17 @@ function sync(progressCallback, callback) { debug(`Found ${ldapGroups.length} groups`); - debug('sync: ldap sync is done', error); + // we ignore all errors here and just log them for now + async.eachSeries(ldapGroups, function (group, iteratorCallback) { + console.log(group); + iteratorCallback(); + }, function (error) { + if (error) return callback(error); - callback(error); + debug('sync: ldap sync is done', error); + + callback(error); + }); }); }); });