From 12bf30c3383827957725bf7a54b67d26898bb81b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 21 Jan 2016 15:49:53 +0100 Subject: [createldapconfig] Prevent acidentally passed string "false" from being used as cert --- src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java b/src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java index 99db07c..864e954 100644 --- a/src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java +++ b/src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java @@ -127,7 +127,7 @@ public class CreateLdapConfig extends AbstractTask if ( this.certificate.equals( "default" ) ) { caPath = DEFAULT_CA_BUNDLE; this.fingerprint = ""; - } else if ( !this.certificate.isEmpty() ) { + } else if ( !this.certificate.isEmpty() && !this.certificate.equals( "false" ) ) { // Write out try { FileUtils.writeStringToFile( caFile, this.certificate ); -- cgit v1.2.3-55-g7522