Skip to content

Commit 2bc012c

Browse files
committed
feat: update LDAP to 3.0.2
1 parent 75cb0aa commit 2bc012c

File tree

2 files changed

+21
-20
lines changed

2 files changed

+21
-20
lines changed

package-lock.json

Lines changed: 20 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Adapters/Auth/ldap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function searchForGroup(client, options, id, resolve, reject) {
7878
return reject(new Parse.Error(Parse.Error.INTERNAL_SERVER_ERROR, 'LDAP group search failed'));
7979
}
8080
res.on('searchEntry', entry => {
81-
if (entry.object.cn === options.groupCn) {
81+
if (entry.pojo.attributes.find(obj => obj.type === 'cn').values.includes(options.groupCn)) {
8282
found = true;
8383
client.unbind();
8484
client.destroy();

0 commit comments

Comments
 (0)