Ignore the bindDn user in the syncer

This commit is contained in:
Johannes Zellner
2019-08-29 22:48:25 +02:00
parent fe3ea53cda
commit 4df48c97ec

View File

@@ -180,6 +180,9 @@ function sync(progressCallback, callback) {
console.log('Ldap user: ', user);
// ignore the bindDn user if any
if (user.dn === externalLdapConfig.bindDn) return;
users.getByUsername(user.uid, function (error, result) {
if (error && error.reason !== UserError.NOT_FOUND) return console.error(error);