com.liferay.portal.security.auth
Class LDAPAuth
java.lang.Object
com.liferay.portal.security.auth.LDAPAuth
- All Implemented Interfaces:
- Authenticator
public class LDAPAuth
- extends Object
- implements Authenticator
Method Summary |
protected LDAPAuthResult |
authenticate(LdapContext ctx,
long companyId,
Attributes attributes,
String userDN,
String password)
|
protected int |
authenticate(long companyId,
long ldapServerId,
String emailAddress,
String screenName,
long userId,
String password)
|
protected int |
authenticate(long companyId,
String emailAddress,
String screenName,
long userId,
String password)
|
int |
authenticateByEmailAddress(long companyId,
String emailAddress,
String password,
Map<String,String[]> headerMap,
Map<String,String[]> parameterMap)
|
int |
authenticateByScreenName(long companyId,
String screenName,
String password,
Map<String,String[]> headerMap,
Map<String,String[]> parameterMap)
|
int |
authenticateByUserId(long companyId,
long userId,
String password,
Map<String,String[]> headerMap,
Map<String,String[]> parameterMap)
|
protected int |
authenticateOmniadmin(long companyId,
String emailAddress,
String screenName,
long userId)
|
protected int |
authenticateRequired(long companyId,
long userId,
String emailAddress,
String screenName,
boolean allowOmniadmin,
int failureCode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AUTH_METHOD_BIND
public static final String AUTH_METHOD_BIND
- See Also:
- Constant Field Values
AUTH_METHOD_PASSWORD_COMPARE
public static final String AUTH_METHOD_PASSWORD_COMPARE
- See Also:
- Constant Field Values
RESULT_PASSWORD_EXP_WARNING
public static final String RESULT_PASSWORD_EXP_WARNING
- See Also:
- Constant Field Values
RESULT_PASSWORD_RESET
public static final String RESULT_PASSWORD_RESET
- See Also:
- Constant Field Values
LDAPAuth
public LDAPAuth()
authenticateByEmailAddress
public int authenticateByEmailAddress(long companyId,
String emailAddress,
String password,
Map<String,String[]> headerMap,
Map<String,String[]> parameterMap)
throws AuthException
- Specified by:
authenticateByEmailAddress
in interface Authenticator
- Throws:
AuthException
authenticateByScreenName
public int authenticateByScreenName(long companyId,
String screenName,
String password,
Map<String,String[]> headerMap,
Map<String,String[]> parameterMap)
throws AuthException
- Specified by:
authenticateByScreenName
in interface Authenticator
- Throws:
AuthException
authenticateByUserId
public int authenticateByUserId(long companyId,
long userId,
String password,
Map<String,String[]> headerMap,
Map<String,String[]> parameterMap)
throws AuthException
- Specified by:
authenticateByUserId
in interface Authenticator
- Throws:
AuthException
authenticate
protected LDAPAuthResult authenticate(LdapContext ctx,
long companyId,
Attributes attributes,
String userDN,
String password)
throws Exception
- Throws:
Exception
authenticate
protected int authenticate(long companyId,
long ldapServerId,
String emailAddress,
String screenName,
long userId,
String password)
throws Exception
- Throws:
Exception
authenticate
protected int authenticate(long companyId,
String emailAddress,
String screenName,
long userId,
String password)
throws Exception
- Throws:
Exception
authenticateOmniadmin
protected int authenticateOmniadmin(long companyId,
String emailAddress,
String screenName,
long userId)
throws Exception
- Throws:
Exception
authenticateRequired
protected int authenticateRequired(long companyId,
long userId,
String emailAddress,
String screenName,
boolean allowOmniadmin,
int failureCode)
throws Exception
- Throws:
Exception