From 05b9e825bb15f56cb25836da89e227865bcc94b5 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 25 Oct 2018 12:38:30 +0300 Subject: [PATCH] - Try to fix: Impossible to connect to LDAP if UserDN contain space(s) #1970 Thanks to Akuket and xet7 ! --- server/authentication.js | 2 +- snap-src/bin/wekan-read-settings | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/authentication.js b/server/authentication.js index 6310e8dff..1d3b1eca4 100644 --- a/server/authentication.js +++ b/server/authentication.js @@ -63,7 +63,7 @@ Meteor.startup(() => { }; if (Meteor.isServer) { - + console.log(process.env.LDAP_AUTHENTIFICATION_USERDN); if(process.env.OAUTH2_CLIENT_ID !== '') { ServiceConfiguration.configurations.upsert( // eslint-disable-line no-undef diff --git a/snap-src/bin/wekan-read-settings b/snap-src/bin/wekan-read-settings index f216c2a8d..5370c5548 100755 --- a/snap-src/bin/wekan-read-settings +++ b/snap-src/bin/wekan-read-settings @@ -15,7 +15,7 @@ do export $key=${!default_value} else echo -e "$key=$value" - export $key=$value + export $key="$value" fi done