public class LdapLoginModule
extends org.jboss.security.auth.spi.UsernamePasswordLoginModule
java.naming.factory.initial This should be set to the fully qualified class name of the initial context factory. Defaults to com.sun.jndi.ldap.LdapCtxFactory java.naming.provider.url The full url to the LDAP server. Defaults to ldap://localhost. Port 389 is used unless java.naming.security.protocol is set to ssl. In that case port 636 is used. java.naming.security.protocol Set this to 'ssl' to enable secure communications. If the java.naming.provider.url is not set, it will be initialized with port 636. LoginProperty The LDAP property that contains the user name. Defaults to cn. If multiple matches are found, the first entry found is used. Filter Any additional filters to apply when doing the LDAP search. Useful if you only want to authenticate against a group of users that have a given LDAP property set. (CAMUser=true for example) BaseDN The base of the LDAP tree we are authenticating against. For example: o=Covalent Technologies,c=US. Multiple LDAP bases can be used by seperating each DN by ';' BindDN The BindDN to use if the LDAP server does not support anonymous searches. BindPW The password to use if the LDAP server does not support anonymous searches
| Constructor and Description |
|---|
LdapLoginModule()
Creates a new
LdapLoginModule object. |
| Modifier and Type | Method and Description |
|---|---|
protected Group[] |
getRoleSets() |
protected String |
getUsersPassword() |
protected boolean |
validatePassword(String inputPassword,
String expectedPassword) |
createPasswordHash, getCredentials, getIdentity, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, initialize, login, safeClose, setValidateErrorpublic LdapLoginModule()
LdapLoginModule object.protected String getUsersPassword() throws LoginException
getUsersPassword in class org.jboss.security.auth.spi.UsernamePasswordLoginModuleLoginExceptionUsernamePasswordLoginModule.getUsersPassword()protected Group[] getRoleSets() throws LoginException
getRoleSets in class org.jboss.security.auth.spi.AbstractServerLoginModuleLoginExceptionAbstractServerLoginModule.getRoleSets()Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.