From 90264f18956a6f27402c9d64117356dfb56495eb Mon Sep 17 00:00:00 2001
From: Oliver Facklam <oliver.facklam@polytechnique.edu>
Date: Sat, 2 Mar 2019 23:35:16 +0100
Subject: [PATCH] correction config_passport.js

---
 src/config_passport.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/config_passport.js b/src/config_passport.js
index e78ea39..342634e 100644
--- a/src/config_passport.js
+++ b/src/config_passport.js
@@ -48,8 +48,8 @@ passport.use(new LdapStrategy({
         //tlsOptions: '..........',
         //https://www.npmjs.com/package/passport-ldapauth for more
     },
-    usernameField: ldapConfig.user.uid,
-    passwordField: ldapConfig.user.password,
+    //usernameField: 'username', // Field name where the username is found, defaults to username
+    //passwordField: 'password', // Field name where the password is found, defaults to password
 
     // no verify callback is needed, as we leave the authentication layer as simple as possible
     // we leave this, commented out, as a template for future use
-- 
GitLab