cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [35/50] [abbrv] git commit: updated refs/heads/disk-cache to c3569db
Date Tue, 17 Sep 2013 14:01:56 GMT
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/disk-cache
Commit: 9febf4c43e06b8a977d6c7a2764df611f23923f6
Parents: ae1cebf
Author: Ian Duffy <ian@ianduffy.ie>
Authored: Fri Sep 13 17:22:52 2013 +0100
Committer: Ian Duffy <ian@ianduffy.ie>
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) {
 


Mime
View raw message