]> source.dussan.org Git - archiva.git/commitdiff
correctly set ssl attribute for ldap connection
authorOlivier Lamy <olamy@apache.org>
Mon, 29 Apr 2013 10:45:48 +0000 (10:45 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 29 Apr 2013 10:45:48 +0000 (10:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1476956 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java

index fb775145127c97acd18a7f3e73d688dc8cc293db..2ed44243d4ac6d3f53d1cd6157ef1443e9ff9e12 100644 (file)
@@ -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 )