diff --git a/src/externalldap.js b/src/externalldap.js index 191a76067..5fc6d6cbc 100644 --- a/src/externalldap.js +++ b/src/externalldap.js @@ -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);