From 6fda29b0982c973a901633149e72a142c9d37ab6 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 29 Apr 2013 10:45:48 +0000 Subject: [PATCH] correctly set ssl attribute for ldap connection git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1476956 13f79535-47bb-0310-9956-ffa450edef68 --- .../services/DefaultRedbackRuntimeConfigurationService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java index fb7751451..2ed44243d 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java @@ -293,6 +293,7 @@ public class DefaultRedbackRuntimeConfigurationService ldapConfiguration.getBindDn(), ldapConfiguration.getPassword(), ldapConfiguration.getAuthenticationMethod(), toProperties( ldapConfiguration.getExtraProperties() ) ); + ldapConnectionConfiguration.setSsl( ldapConfiguration.isSsl() ); ldapConnection = ldapConnectionFactory.getConnection( ldapConnectionConfiguration ); @@ -308,6 +309,8 @@ public class DefaultRedbackRuntimeConfigurationService ldapConfiguration.getAuthenticationMethod(), toProperties( ldapConfiguration.getExtraProperties() ) ); + ldapConnectionConfiguration.setSsl( ldapConfiguration.isSsl() ); + ldapConnection = ldapConnectionFactory.getConnection( ldapConnectionConfiguration ); } catch ( InvalidNameException e ) -- 2.39.5