public class SimpleLDAPLoginModule extends Object implements LoginModule
A login configuration should provide at least the following two options:
Here is a Login module configuration example which may be used by LDAPAuthenticator:
LDAPLogin {
com.ibm.websphere.objectgrid.security.plugins.builtins.SimpleLDAPLoginModule required
providerURL="ldap://bluepages.ibm.com:389/"
factoryClass="com.sun.jndi.ldap.LdapCtxFactory"
debug=true;
};
The example providerURL points to an LDAP server with the port number
389. The initial context factory is com.sun.jndi.ldap.LdapCtxFactory.
This login module returns a principal of class X500Principal.LoginModule| Constructor and Description |
|---|
SimpleLDAPLoginModule() |
public boolean abort()
throws LoginException
abort in interface LoginModuleLoginExceptionpublic boolean commit()
throws LoginException
commit in interface LoginModuleLoginExceptionpublic void initialize(Subject _subject, CallbackHandler _callbackHandler, Map<String,?> _sharedState, Map<String,?> _options)
initialize in interface LoginModulepublic boolean login()
throws LoginException
login in interface LoginModuleLoginExceptionpublic boolean logout()
throws LoginException
logout in interface LoginModuleLoginException