Small fixes related with some unneeded variables.
FEA: ItEr75S06LdapAuhenticationItEr74S09
This commit is contained in:
parent
ca97bec38a
commit
ff64e01c1f
1 changed files with 4 additions and 6 deletions
|
|
@ -275,10 +275,9 @@ public class LDAPCustomAuthenticationProvider extends
|
|||
@SuppressWarnings("unchecked")
|
||||
private List<String> getRolesUsingNodeStrategy(
|
||||
List<ConfigurationRolesLDAP> rolesLdap, String queryRoles,
|
||||
LDAPConfiguration configuration) {
|
||||
final LDAPConfiguration configuration) {
|
||||
|
||||
final LDAPConfiguration ldapConfig = configuration;
|
||||
final String roleProperty = ldapConfig.getLdapRoleProperty();
|
||||
String roleProperty = configuration.getLdapRoleProperty();
|
||||
|
||||
List<String> rolesReturn = new ArrayList<String>();
|
||||
for (ConfigurationRolesLDAP roleLDAP : rolesLdap) {
|
||||
|
|
@ -296,7 +295,7 @@ public class LDAPCustomAuthenticationProvider extends
|
|||
public Object mapFromAttributes(
|
||||
Attributes attributes)
|
||||
throws NamingException {
|
||||
return attributes.get(ldapConfig
|
||||
return attributes.get(configuration
|
||||
.getLdapUserId());
|
||||
}
|
||||
}));
|
||||
|
|
@ -314,8 +313,7 @@ public class LDAPCustomAuthenticationProvider extends
|
|||
List<ConfigurationRolesLDAP> rolesLdap, String queryRoles,
|
||||
LDAPConfiguration configuration) {
|
||||
|
||||
final LDAPConfiguration ldapConfig = configuration;
|
||||
final String roleProperty = ldapConfig.getLdapRoleProperty();
|
||||
String roleProperty = configuration.getLdapRoleProperty();
|
||||
String groupsPath = configuration.getLdapGroupPath();
|
||||
|
||||
List<String> rolesReturn = new ArrayList<String>();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue