diff --git a/server/ldap.js b/server/ldap.js index 555a30a..cdb705c 100644 --- a/server/ldap.js +++ b/server/ldap.js @@ -94,7 +94,7 @@ export default class LDAP { if (this.options.ca_cert && this.options.ca_cert !== '') { // Split CA cert into array of strings - const chainLines = this.constructor.settings_get('LDAP_CA_CERT').split('\n'); + const chainLines = this.constructor.settings_get('LDAP_CA_CERT').replace(/\\n/g,'\n').split('\n'); let cert = []; const ca = []; chainLines.forEach((line) => {