From ca4513ac9832ea8a6a24c9fb87c6132ed050f5cd Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Thu, 05 Jul 2007 16:51:17 +0000
Subject: [PATCH] When installing update the Start TLS property on the registration information.  This way when we try to commit to a server using the standard LDAP port and startTLS is configured we will use it to connect.

---
 opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
index 106efa4..5e2b427 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java
@@ -2229,6 +2229,15 @@
       serverProperties.put(ADSContext.ServerProperty.LDAPS_ENABLED, "false");
     }
 
+    if (sec.getEnableStartTLS())
+    {
+      serverProperties.put(ADSContext.ServerProperty.STARTTLS_ENABLED, "true");
+    }
+    else
+    {
+      serverProperties.put(ADSContext.ServerProperty.STARTTLS_ENABLED, "false");
+    }
+
     serverProperties.put(ADSContext.ServerProperty.JMX_PORT, "1689");
     serverProperties.put(ADSContext.ServerProperty.JMX_ENABLED, "false");
 

--
Gitblit v1.10.0