diff options
author | Simon Rettberg | 2016-01-21 15:49:53 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-01-21 15:49:53 +0100 |
commit | 12bf30c3383827957725bf7a54b67d26898bb81b (patch) | |
tree | e6aa25d05d1412abf8452b84e1590ba64e205f5c | |
parent | [CompileIPxe] remove v4 subdir for ipxelinux.0 destination dir (diff) | |
download | tmlite-bwlp-12bf30c3383827957725bf7a54b67d26898bb81b.tar.gz tmlite-bwlp-12bf30c3383827957725bf7a54b67d26898bb81b.tar.xz tmlite-bwlp-12bf30c3383827957725bf7a54b67d26898bb81b.zip |
[createldapconfig] Prevent acidentally passed string "false" from being used as cert
-rw-r--r-- | src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); |