refactor: Upgrade ldapjs from 2.3.3 to 3.0.7 (#8947)

This commit is contained in:
Manuel
2024-02-26 21:05:10 +01:00
committed by GitHub
parent 68b745a604
commit f5d6fc98e7
3 changed files with 198 additions and 42 deletions

View File

@@ -78,7 +78,7 @@ function searchForGroup(client, options, id, resolve, reject) {
return reject(new Parse.Error(Parse.Error.INTERNAL_SERVER_ERROR, 'LDAP group search failed'));
}
res.on('searchEntry', entry => {
if (entry.object.cn === options.groupCn) {
if (entry.pojo.attributes.find(obj => obj.type === 'cn').values.includes(options.groupCn)) {
found = true;
client.unbind();
client.destroy();