Browse Source

add configuration information for test LDAP

Yuki Takei 7 years ago
parent
commit
a4e1324314
1 changed files with 6 additions and 1 deletions
  1. 6 1
      lib/service/passport.js

+ 6 - 1
lib/service/passport.js

@@ -220,7 +220,12 @@ class PassportService {
         bindDN.replace(/{{username}}/, loginForm.username):
         bindDN;
       const fixedBindCredentials = (isUserBind) ? loginForm.password : bindCredentials;
-      let serverOpt = { url, bindDN: fixedBindDN, bindCredentials: fixedBindCredentials, searchBase, searchFilter };
+      let serverOpt = {
+        url, bindDN: fixedBindDN, bindCredentials: fixedBindCredentials,
+        searchBase, searchFilter,
+        attrMapUsername: this.getLdapAttrNameMappedToUsername(),
+        attrMapName: this.getLdapAttrNameMappedToName(),
+      };
 
       if (groupSearchBase && groupSearchFilter) {
         serverOpt = Object.assign(serverOpt, { groupSearchBase, groupSearchFilter, groupDnProperty });