summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-21 15:49:53 +0100
committerSimon Rettberg2016-01-21 15:49:53 +0100
commit12bf30c3383827957725bf7a54b67d26898bb81b (patch)
treee6aa25d05d1412abf8452b84e1590ba64e205f5c /src/main/java/org/openslx
parent[CompileIPxe] remove v4 subdir for ipxelinux.0 destination dir (diff)
downloadtmlite-bwlp-12bf30c3383827957725bf7a54b67d26898bb81b.tar.gz
tmlite-bwlp-12bf30c3383827957725bf7a54b67d26898bb81b.tar.xz
tmlite-bwlp-12bf30c3383827957725bf7a54b67d26898bb81b.zip
[createldapconfig] Prevent acidentally passed string "false" from being used as cert
Diffstat (limited to 'src/main/java/org/openslx')
-rw-r--r--src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java2
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 );