Ignore the bindDn user in the syncer
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user