Return name for getName() on LdapAuthenticator

This commit is contained in:
Ian Duffy 2013-09-13 17:22:52 +01:00
parent ae1cebf4e9
commit 9febf4c43e
1 changed files with 10 additions and 0 deletions

View File

@ -19,6 +19,7 @@ package org.apache.cloudstack.ldap;
import java.util.Map;
import javax.inject.Inject;
import javax.naming.ConfigurationException;
import org.apache.log4j.Logger;
@ -46,6 +47,15 @@ public class LdapAuthenticator extends DefaultUserAuthenticator {
_userAccountDao = userAccountDao;
}
@Override
public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {
if (name == null) {
name = "LDAP";
}
super.configure(name, params);
return true;
}
@Override
public boolean authenticate(final String username, final String password,
final Long domainId, final Map<String, Object[]> requestParameters) {