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, setIdentity
protected 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 LoginModule
initialize
in class org.jboss.security.auth.spi.AbstractServerLoginModule
public boolean login() throws LoginException
login
in interface LoginModule
login
in class org.jboss.security.auth.spi.AbstractServerLoginModule
LoginException
protected Group[] getRoleSets() throws LoginException
getRoleSets
in class org.jboss.security.auth.spi.AbstractServerLoginModule
LoginException
protected Boolean innerLogin() throws LoginException
LoginException
protected LdapContext constructLdapContext(String namingProviderURL, String dn, Object credential, String authentication) throws LoginException
LoginException
protected Properties createBaseProperties()
protected String findUserDN(LdapContext ctx) throws LoginException
LoginException
protected void authenticate(String userDN) throws LoginException
LoginException
protected void rolesSearch(LdapContext searchContext, String dn) throws LoginException
LoginException
protected void obtainRole(LdapContext searchContext, String dn, SearchResult sr) throws NamingException, LoginException
NamingException
LoginException
protected void loadRoleByRoleNameAttributeID(LdapContext searchContext, String roleDN)
protected void recurseRolesSearch(LdapContext searchContext, String roleDN) throws LoginException
LoginException
protected void traceLdapEnv(Properties env)
Copyright © 2019 JBoss by Red Hat. All rights reserved.