Skip to content

Commit 6af5371

Browse files
authored
Merge f2965e7 into 4ad0800
2 parents 4ad0800 + f2965e7 commit 6af5371

File tree

3 files changed

+205
-44
lines changed

3 files changed

+205
-44
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"ip-range-check": "0.2.0",
4343
"jsonwebtoken": "9.0.0",
4444
"jwks-rsa": "2.1.5",
45-
"ldapjs": "2.3.3",
45+
"ldapjs": "3.0.2",
4646
"lodash": "4.17.21",
4747
"lru-cache": "9.1.1",
4848
"mime": "3.0.0",

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)