Use forked ldapjs to remove dtrace

Fixes #1756
This commit is contained in:
Pavel Djundik 2018-01-30 21:57:44 +02:00
parent 79a2c72c06
commit c4f6701d65
3 changed files with 7 additions and 3 deletions

View file

@ -45,7 +45,6 @@
"express": "4.16.2",
"fs-extra": "5.0.0",
"irc-framework": "2.10.3",
"ldapjs": "1.0.2",
"lodash": "4.17.5",
"mime-types": "2.1.17",
"moment": "2.20.1",
@ -56,6 +55,7 @@
"semver": "5.5.0",
"socket.io": "2.0.4",
"spdy": "3.4.7",
"thelounge-ldapjs-non-maintained-fork": "1.0.2",
"ua-parser-js": "0.7.17",
"urijs": "1.19.0",
"web-push": "3.2.5"

View file

@ -1,7 +1,11 @@
"use strict";
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) {
const config = Helper.config;

View file

@ -2,7 +2,7 @@
const ldapAuth = require("../../../src/plugins/auth/ldap");
const Helper = require("../../../src/helper");
const ldap = require("ldapjs");
const ldap = require("thelounge-ldapjs-non-maintained-fork");
const expect = require("chai").expect;
const user = "johndoe";