소스 검색

- Try to fix: Impossible to connect to LDAP if UserDN contain space(s) #1970

Thanks to Akuket and xet7 !
Lauri Ojansivu 6 년 전
부모
커밋
05b9e825bb
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      server/authentication.js
  2. 1 1
      snap-src/bin/wekan-read-settings

+ 1 - 1
server/authentication.js

@@ -63,7 +63,7 @@ Meteor.startup(() => {
   };
   };
 
 
   if (Meteor.isServer) {
   if (Meteor.isServer) {
-
+    console.log(process.env.LDAP_AUTHENTIFICATION_USERDN);
     if(process.env.OAUTH2_CLIENT_ID !== '') {
     if(process.env.OAUTH2_CLIENT_ID !== '') {
 
 
       ServiceConfiguration.configurations.upsert( // eslint-disable-line no-undef
       ServiceConfiguration.configurations.upsert( // eslint-disable-line no-undef

+ 1 - 1
snap-src/bin/wekan-read-settings

@@ -15,7 +15,7 @@ do
         export $key=${!default_value}
         export $key=${!default_value}
     else
     else
         echo -e "$key=$value"
         echo -e "$key=$value"
-        export $key=$value
+        export $key="$value"
     fi
     fi
 done
 done