mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
Merge pull request #3391 from thelounge/xpaw/fix-3381
Move back to ldapjs dependency
This commit is contained in:
commit
c4236e0e12
4 changed files with 321 additions and 530 deletions
|
@ -53,6 +53,7 @@
|
||||||
"got": "9.6.0",
|
"got": "9.6.0",
|
||||||
"irc-framework": "4.4.0",
|
"irc-framework": "4.4.0",
|
||||||
"is-utf8": "0.2.1",
|
"is-utf8": "0.2.1",
|
||||||
|
"ldapjs": "2.0.0-pre.2",
|
||||||
"linkify-it": "2.2.0",
|
"linkify-it": "2.2.0",
|
||||||
"lodash": "4.17.15",
|
"lodash": "4.17.15",
|
||||||
"mime-types": "2.1.24",
|
"mime-types": "2.1.24",
|
||||||
|
@ -61,7 +62,6 @@
|
||||||
"read-chunk": "3.2.0",
|
"read-chunk": "3.2.0",
|
||||||
"semver": "6.3.0",
|
"semver": "6.3.0",
|
||||||
"socket.io": "2.2.0",
|
"socket.io": "2.2.0",
|
||||||
"thelounge-ldapjs-non-maintained-fork": "1.0.4",
|
|
||||||
"tlds": "1.203.1",
|
"tlds": "1.203.1",
|
||||||
"ua-parser-js": "0.7.20",
|
"ua-parser-js": "0.7.20",
|
||||||
"uuid": "3.3.3",
|
"uuid": "3.3.3",
|
||||||
|
|
|
@ -2,11 +2,7 @@
|
||||||
|
|
||||||
const log = require("../../log");
|
const log = require("../../log");
|
||||||
const Helper = require("../../helper");
|
const Helper = require("../../helper");
|
||||||
|
const ldap = require("ldapjs");
|
||||||
// Forked ldapjs for 2 reasons:
|
|
||||||
// 1. Removed bunyan https://github.com/joyent/node-ldapjs/pull/399
|
|
||||||
// 2. Remove dtrace-provider dependency
|
|
||||||
const ldap = require("thelounge-ldapjs-non-maintained-fork");
|
|
||||||
|
|
||||||
function ldapAuthCommon(user, bindDN, password, callback) {
|
function ldapAuthCommon(user, bindDN, password, callback) {
|
||||||
const config = Helper.config;
|
const config = Helper.config;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
const log = require("../../../src/log");
|
const log = require("../../../src/log");
|
||||||
const ldapAuth = require("../../../src/plugins/auth/ldap");
|
const ldapAuth = require("../../../src/plugins/auth/ldap");
|
||||||
const Helper = require("../../../src/helper");
|
const Helper = require("../../../src/helper");
|
||||||
const ldap = require("thelounge-ldapjs-non-maintained-fork");
|
const ldap = require("ldapjs");
|
||||||
const expect = require("chai").expect;
|
const expect = require("chai").expect;
|
||||||
const stub = require("sinon").stub;
|
const stub = require("sinon").stub;
|
||||||
const TestUtil = require("../../util");
|
const TestUtil = require("../../util");
|
||||||
|
|
Loading…
Reference in a new issue