public class AdvancedLdapLoginModule extends CommonLoginModule
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowEmptyPassword |
protected String |
baseCtxDN |
protected String |
baseFilter |
protected String |
bindAuthentication |
protected String |
bindCredential |
protected String |
bindDn |
protected String |
jaasSecurityDomain |
protected boolean |
recurseRoles |
protected String |
referralUserAttributeIDToCheck |
protected String |
roleAttributeID |
protected boolean |
roleAttributeIsDN |
protected String |
roleFilter |
protected String |
roleNameAttributeID |
protected String |
rolesCtxDN |
protected SearchControls |
roleSearchControls |
protected int |
searchTimeLimit |
protected SearchControls |
userSearchControls |
| Constructor and Description |
|---|
AdvancedLdapLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
authenticate(String userDN) |
protected String |
canonicalize(String searchResult) |
protected LdapContext |
constructLdapContext(String namingProviderURL,
String dn,
Object credential,
String authentication) |
protected Properties |
createBaseProperties() |
protected String |
findUserDN(LdapContext ctx) |
protected Group[] |
getRoleSets() |
void |
initialize(Subject subject,
CallbackHandler handler,
Map sharedState,
Map options) |
protected Boolean |
innerLogin() |
protected void |
loadRoleByRoleNameAttributeID(LdapContext searchContext,
String roleDN) |
boolean |
login() |
protected void |
obtainRole(LdapContext searchContext,
String dn,
SearchResult sr) |
protected void |
recurseRolesSearch(LdapContext searchContext,
String roleDN) |
protected void |
rolesSearch(LdapContext searchContext,
String dn) |
protected void |
traceLdapEnv(Properties env) |
getCredential, getIdentity, processIdentityAndCredential, setIdentityprotected String bindAuthentication
protected String bindDn
protected String bindCredential
protected String jaasSecurityDomain
protected String baseCtxDN
protected String baseFilter
protected int searchTimeLimit
protected SearchControls userSearchControls
protected String rolesCtxDN
protected String roleFilter
protected boolean recurseRoles
protected SearchControls roleSearchControls
protected String roleAttributeID
protected boolean roleAttributeIsDN
protected String roleNameAttributeID
protected String referralUserAttributeIDToCheck
protected boolean allowEmptyPassword
public void initialize(Subject subject, CallbackHandler handler, Map sharedState, Map options)
initialize in interface LoginModuleinitialize in class org.jboss.security.auth.spi.AbstractServerLoginModulepublic boolean login()
throws LoginException
login in interface LoginModulelogin in class org.jboss.security.auth.spi.AbstractServerLoginModuleLoginExceptionprotected Group[] getRoleSets() throws LoginException
getRoleSets in class org.jboss.security.auth.spi.AbstractServerLoginModuleLoginExceptionprotected Boolean innerLogin() throws LoginException
LoginExceptionprotected LdapContext constructLdapContext(String namingProviderURL, String dn, Object credential, String authentication) throws LoginException
LoginExceptionprotected Properties createBaseProperties()
protected String findUserDN(LdapContext ctx) throws LoginException
LoginExceptionprotected void authenticate(String userDN) throws LoginException
LoginExceptionprotected void rolesSearch(LdapContext searchContext, String dn) throws LoginException
LoginExceptionprotected void obtainRole(LdapContext searchContext, String dn, SearchResult sr) throws NamingException, LoginException
NamingExceptionLoginExceptionprotected void loadRoleByRoleNameAttributeID(LdapContext searchContext, String roleDN)
protected void recurseRolesSearch(LdapContext searchContext, String roleDN) throws LoginException
LoginExceptionprotected void traceLdapEnv(Properties env)
Copyright © 2016 JBoss by Red Hat. All rights reserved.