diff --git a/lib/passport.js b/lib/passport.js index 2b6a8359..0a5a0f12 100644 --- a/lib/passport.js +++ b/lib/passport.js @@ -17,6 +17,7 @@ try { LdapStrategy = require('passport-ldapjs').Strategy; // eslint-disable-line global-require } catch (E) { // ignore + console.warn('Module "passport-ldapjs" not installed. LDAP auth will fail.'); } module.exports.csrfProtection = csrf({ diff --git a/package.json b/package.json index 811c0354..dab0933f 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,6 @@ "npmlog": "^4.0.2", "openpgp": "^2.4.0", "passport": "^0.3.2", - "passport-ldapjs": "^1.0.2", "passport-local": "^1.0.0", "premailer-api": "^1.0.4", "redfour": "^1.0.0",