|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.platform.security.authentication.BaseAuthenticationModule
blackboard.platform.security.authentication.LDAPAuthModule
public class LDAPAuthModule
Implementation class for the LDAP authentication provider for Blackboard Learning system. Building Block Developers are able to subclass this in custom authentications. However, specific changes to the way that the provider connects to the LDAP server may not be made and will still be dictated by properties set in the authentication.properties file.
Subclasses must call the BaseAuthenticationModule.authenticate(String, String, SessionStub, boolean) and
init(ConfigurationService) methods in this class or the LDAP functionality will not work.
Developers that wish to substantially change the behavior of the LDAP provider can use
BaseAuthenticationModule to implement their own LDAP provider using JNDI or another library.
HttpAuthModule| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class blackboard.platform.security.authentication.BaseAuthenticationModule |
|---|
BaseAuthenticationModule.ValidationSucceeded |
| Field Summary |
|---|
| Fields inherited from class blackboard.platform.security.authentication.BaseAuthenticationModule |
|---|
_config, _logger, IMPL_CLASS_KEY, USE_CHALLENGE_KEY |
| Constructor Summary | |
|---|---|
LDAPAuthModule()
Constructor for the LDAP authentication provider. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
authenticate(java.lang.String userName,
java.lang.String password,
SessionStub sessionStub,
boolean useChallenge,
boolean isSecondary)
Method to support LDAP-based authentication. |
protected blackboard.platform.security.authentication.LDAPAuthContext |
createAuthContext(blackboard.platform.security.authentication.LDAPServerConfig config,
java.lang.String url)
|
java.lang.String |
getAuthType()
Returns a String identifier for the authentication type for a given implementation of HttpAuthModule. |
boolean |
getErrorFallbackToBb()
Returns a true if the LDAP provider is configured to "fall back" to the default authentication if an error is encountered using LDAP. |
int |
getNumServers()
Returns the number of LDAP servers configured. |
java.lang.String[] |
getPropKeys()
Returns a String array of the keys to this authentication module's configuration properties file. |
java.lang.String |
getRemoteUser(javax.servlet.http.HttpServletRequest request)
Extracts the CGI variable REMOTE_USER from the incoming request. |
User |
getUserFromUsernamePassword(java.lang.String username,
java.lang.String password)
Returns the User object for a given username and password. |
boolean |
getUserNotFoundFallbackToBb()
Returns true of the LDAP provider is configured to "fall back" to the default authentication if the user is not found in LDAP. |
void |
init(ConfigurationService cfg)
Initializes authentication module. |
| Methods inherited from class blackboard.platform.security.authentication.BaseAuthenticationModule |
|---|
assertRequestAuthenticate, authenticate, doAuthenticate, doAuthenticate, doAuthenticate, doLogout, establishSession, getBundle, getConfigErrs, getCreateAccountAllowed, getDefaultAuthType, getDoAuthenticateParams, getRequestAuthenticateUri, getSecondaryDoAuthenticateParams, getSubConfigErrs, getUseChallenge, isExternalAuth, requestAuthenticate, setAuthTypeDisplayStr, setConfig, setGlobalKeys, suppressFirstLoadError, validateConfig, validatePassword |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LDAPAuthModule()
| Method Detail |
|---|
public void init(ConfigurationService cfg)
init in interface HttpAuthModuleinit in class BaseAuthenticationModulecfg - The ConfigurationService for this installation.public boolean getErrorFallbackToBb()
public boolean getUserNotFoundFallbackToBb()
protected blackboard.platform.security.authentication.LDAPAuthContext createAuthContext(blackboard.platform.security.authentication.LDAPServerConfig config,
java.lang.String url)
throws BbSecurityException
BbSecurityException
protected java.lang.String authenticate(java.lang.String userName,
java.lang.String password,
SessionStub sessionStub,
boolean useChallenge,
boolean isSecondary)
throws BbAuthenticationFailedException,
BbSecurityException
authenticate in class BaseAuthenticationModuleuserName - User namepassword - this should be the clear text password to use to perform the bind.
BbAuthenticationFailedException
BbSecurityException
public User getUserFromUsernamePassword(java.lang.String username,
java.lang.String password)
throws PersistenceException,
BbSecurityException
User object for a given username and password.
getUserFromUsernamePassword in interface blackboard.platform.security.authentication.IUserPassAuthModulePersistenceException
BbSecurityException
public java.lang.String getRemoteUser(javax.servlet.http.HttpServletRequest request)
throws BbSecurityException
BbSecurityExceptionpublic int getNumServers()
public java.lang.String getAuthType()
getAuthType in interface HttpAuthModulegetAuthType in class BaseAuthenticationModulepublic java.lang.String[] getPropKeys()
getPropKeys in interface HttpAuthModulegetPropKeys in class BaseAuthenticationModule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||