Skip to content

Commit 7d453a9

Browse files
authored
Merge branch 'alpha' into moumouls/switch-to-apollo-and-file-stream
2 parents 324b1ce + f5d6fc9 commit 7d453a9

File tree

3 files changed

+200
-44
lines changed

3 files changed

+200
-44
lines changed

package-lock.json

Lines changed: 198 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
@@ -43,7 +43,7 @@
4343
"intersect": "1.0.1",
4444
"jsonwebtoken": "9.0.0",
4545
"jwks-rsa": "3.1.0",
46-
"ldapjs": "2.3.3",
46+
"ldapjs": "3.0.7",
4747
"lodash": "4.17.21",
4848
"lru-cache": "10.1.0",
4949
"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)