summaryrefslogtreecommitdiffstats
path: root/redback-authentication
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2013-05-01 12:19:20 +0000
committerOlivier Lamy <olamy@apache.org>2013-05-01 12:19:20 +0000
commit4a57b05074480aa469551fa8b60263b6da5212e1 (patch)
tree6f00a65c2aab8011d8c0388f3909fa47962e8cbb /redback-authentication
parentd1b77ab2481a38053f720faf9df6973bd0176eb8 (diff)
downloadarchiva-4a57b05074480aa469551fa8b60263b6da5212e1.tar.gz
archiva-4a57b05074480aa469551fa8b60263b6da5212e1.zip
move LdapConnection to an interface
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1477971 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'redback-authentication')
-rw-r--r--redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/main/java/org/apache/archiva/redback/authentication/ldap/LdapBindAuthenticator.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/main/java/org/apache/archiva/redback/authentication/ldap/LdapBindAuthenticator.java b/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/main/java/org/apache/archiva/redback/authentication/ldap/LdapBindAuthenticator.java
index fafe25c06..474b7ab30 100644
--- a/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/main/java/org/apache/archiva/redback/authentication/ldap/LdapBindAuthenticator.java
+++ b/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/main/java/org/apache/archiva/redback/authentication/ldap/LdapBindAuthenticator.java
@@ -21,6 +21,7 @@ package org.apache.archiva.redback.authentication.ldap;
import org.apache.archiva.redback.authentication.AbstractAuthenticator;
import org.apache.archiva.redback.common.ldap.connection.DefaultLdapConnection;
+import org.apache.archiva.redback.common.ldap.connection.LdapConnection;
import org.apache.archiva.redback.common.ldap.user.UserMapper;
import org.apache.archiva.redback.common.ldap.connection.LdapConnectionFactory;
import org.apache.archiva.redback.configuration.UserConfiguration;
@@ -103,8 +104,8 @@ public class LdapBindAuthenticator
log.debug( "Searching for users with filter: '{}' from base dn: {}", filter, mapper.getUserBaseDn() );
- DefaultLdapConnection ldapConnection = null;
- DefaultLdapConnection authLdapConnection = null;
+ LdapConnection ldapConnection = null;
+ LdapConnection authLdapConnection = null;
NamingEnumeration<SearchResult> results = null;
try
{
@@ -172,13 +173,13 @@ public class LdapBindAuthenticator
return ( source instanceof PasswordBasedAuthenticationDataSource );
}
- private DefaultLdapConnection getLdapConnection()
+ private LdapConnection getLdapConnection()
throws LdapException
{
return connectionFactory.getConnection();
}
- private void closeLdapConnection( DefaultLdapConnection ldapConnection )
+ private void closeLdapConnection( LdapConnection ldapConnection )
{
if ( ldapConnection != null )
{