From 65923c0c050f1306e15791af8a769d5affe0d697 Mon Sep 17 00:00:00 2001 From: Melwin Kieffer Date: Tue, 10 Oct 2017 16:30:40 +0200 Subject: [PATCH] add: LDAP options `bindUser` and `bindPassword` To be able to use a different user for bind requests, which can be required by some LDAP security strategy. --- lib/passport.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/passport.js b/lib/passport.js index 04ef20ac..1ddd3bca 100644 --- a/lib/passport.js +++ b/lib/passport.js @@ -85,7 +85,9 @@ if (config.ldap.enabled && LdapStrategy) { attributes: [config.ldap.uidTag, 'mail'], scope: 'sub' }, - uidTag: config.ldap.uidTag + uidTag: config.ldap.uidTag, + bindUser: config.ldap.bindUser, + bindPassword: config.ldap.bindPassword }; passport.use(new LdapStrategy(opts, (profile, done) => {