diff --git a/lib/passport.js b/lib/passport.js index 0a5a0f12..60bbbe3d 100644 --- a/lib/passport.js +++ b/lib/passport.js @@ -16,8 +16,9 @@ let LdapStrategy; 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.'); + if (config.ldap.enabled) { + log.info('LDAP', 'Module "passport-ldapjs" not installed. LDAP auth will fail.'); + } } module.exports.csrfProtection = csrf({