diff options
author | Olivier Lamy <olamy@apache.org> | 2013-05-01 12:17:23 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-05-01 12:17:23 +0000 |
commit | 4ecba94f20eae83afa09b8dcdcc7dba4f0ea45cc (patch) | |
tree | 66249c725a7684cfcebeeb15d8761b705f6380b5 /redback-authentication | |
parent | 29ab886c64b91e8628f1c621452cd22771ea042a (diff) | |
download | archiva-4ecba94f20eae83afa09b8dcdcc7dba4f0ea45cc.tar.gz archiva-4ecba94f20eae83afa09b8dcdcc7dba4f0ea45cc.zip |
rename to default to have an interface
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1477968 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.java | 10 |
1 files changed, 5 insertions, 5 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 b66ce16a8..fafe25c06 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 @@ -20,6 +20,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.user.UserMapper; import org.apache.archiva.redback.common.ldap.connection.LdapConnectionFactory; import org.apache.archiva.redback.configuration.UserConfiguration; @@ -30,7 +31,6 @@ import org.apache.archiva.redback.authentication.AuthenticationException; import org.apache.archiva.redback.authentication.AuthenticationResult; import org.apache.archiva.redback.authentication.Authenticator; import org.apache.archiva.redback.authentication.PasswordBasedAuthenticationDataSource; -import org.apache.archiva.redback.common.ldap.connection.LdapConnection; import org.apache.archiva.redback.common.ldap.connection.LdapException; import org.apache.archiva.redback.users.ldap.service.LdapCacheService; import org.slf4j.Logger; @@ -103,8 +103,8 @@ public class LdapBindAuthenticator log.debug( "Searching for users with filter: '{}' from base dn: {}", filter, mapper.getUserBaseDn() ); - LdapConnection ldapConnection = null; - LdapConnection authLdapConnection = null; + DefaultLdapConnection ldapConnection = null; + DefaultLdapConnection authLdapConnection = null; NamingEnumeration<SearchResult> results = null; try { @@ -172,13 +172,13 @@ public class LdapBindAuthenticator return ( source instanceof PasswordBasedAuthenticationDataSource ); } - private LdapConnection getLdapConnection() + private DefaultLdapConnection getLdapConnection() throws LdapException { return connectionFactory.getConnection(); } - private void closeLdapConnection( LdapConnection ldapConnection ) + private void closeLdapConnection( DefaultLdapConnection ldapConnection ) { if ( ldapConnection != null ) { |