diff options
author | Olivier Lamy <olamy@apache.org> | 2013-04-29 10:45:48 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-04-29 10:45:48 +0000 |
commit | 6fda29b0982c973a901633149e72a142c9d37ab6 (patch) | |
tree | ec22a91ce40ca00931b9f3012f914ef636f8c392 /archiva-modules | |
parent | 71cb7369d96c617e2c20aae8fa2027e924407339 (diff) | |
download | archiva-6fda29b0982c973a901633149e72a142c9d37ab6.tar.gz archiva-6fda29b0982c973a901633149e72a142c9d37ab6.zip |
correctly set ssl attribute for ldap connection
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1476956 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java | 3 |
1 files changed, 3 insertions, 0 deletions
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 ) |