Updated Branches: refs/heads/master ae1cebf4e -> 9febf4c43
Return name for getName() on LdapAuthenticator Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/9febf4c4 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/9febf4c4 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/9febf4c4 Branch: refs/heads/master Commit: 9febf4c43e06b8a977d6c7a2764df611f23923f6 Parents: ae1cebf Author: Ian Duffy <[email protected]> Authored: Fri Sep 13 17:22:52 2013 +0100 Committer: Ian Duffy <[email protected]> Committed: Fri Sep 13 17:22:52 2013 +0100 ---------------------------------------------------------------------- .../src/org/apache/cloudstack/ldap/LdapAuthenticator.java | 10 ++++++++++ 1 file changed, 10 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9febf4c4/plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapAuthenticator.java ---------------------------------------------------------------------- diff --git a/plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapAuthenticator.java b/plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapAuthenticator.java index 559a979..e62a3d8 100644 --- a/plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapAuthenticator.java +++ b/plugins/user-authenticators/ldap/src/org/apache/cloudstack/ldap/LdapAuthenticator.java @@ -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; @@ -47,6 +48,15 @@ public class LdapAuthenticator extends DefaultUserAuthenticator { } @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) {
