mirror of https://github.com/apache/cloudstack.git
Return name for getName() on LdapAuthenticator
This commit is contained in:
parent
ae1cebf4e9
commit
9febf4c43e
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue