public class MSADLDSUserAccountControlStorageMapper extends AbstractLDAPStorageMapper implements PasswordUpdateCallback
| Modifier and Type | Class and Description |
|---|---|
class |
MSADLDSUserAccountControlStorageMapper.MSADUserModelDelegate |
ldapProvider, mapperModel, session| Constructor and Description |
|---|
MSADLDSUserAccountControlStorageMapper(ComponentModel mapperModel,
LDAPStorageProvider ldapProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeLDAPQuery(LDAPQuery query)
Called before LDAP Identity query for retrieve LDAP users was executed.
|
LDAPOperationDecorator |
beforePasswordUpdate(UserModel user,
LDAPObject ldapUser,
UserCredentialModel password) |
boolean |
onAuthenticationFailure(LDAPObject ldapUser,
UserModel user,
AuthenticationException ldapException,
RealmModel realm)
Called when LDAP authentication of specified user fails.
|
void |
onImportUserFromLDAP(LDAPObject ldapUser,
UserModel user,
RealmModel realm,
boolean isCreate)
Called when importing user from LDAP to local keycloak DB.
|
void |
onRegisterUserToLDAP(LDAPObject ldapUser,
UserModel localUser,
RealmModel realm)
Called when register new user to LDAP - just after user was created in Keycloak DB
|
void |
passwordUpdated(UserModel user,
LDAPObject ldapUser,
UserCredentialModel password) |
void |
passwordUpdateFailed(UserModel user,
LDAPObject ldapUser,
UserCredentialModel password,
ModelException exception) |
protected boolean |
processAuthErrorCode(String errorCode,
UserModel user) |
protected ModelException |
processFailedPasswordUpdateException(ModelException e) |
UserModel |
proxy(LDAPObject ldapUser,
UserModel delegate,
RealmModel realm)
Called when invoke proxy on LDAP federation provider
|
close, getGroupMembers, getLdapProvider, getRoleMembers, parseBooleanParameter, syncDataFromFederationProviderToKeycloak, syncDataFromKeycloakToFederationProviderpublic MSADLDSUserAccountControlStorageMapper(ComponentModel mapperModel, LDAPStorageProvider ldapProvider)
public void beforeLDAPQuery(LDAPQuery query)
LDAPStorageMapperbeforeLDAPQuery in interface LDAPStorageMapperpublic LDAPOperationDecorator beforePasswordUpdate(UserModel user, LDAPObject ldapUser, UserCredentialModel password)
beforePasswordUpdate in interface PasswordUpdateCallbackpublic void passwordUpdated(UserModel user, LDAPObject ldapUser, UserCredentialModel password)
passwordUpdated in interface PasswordUpdateCallbackpublic void passwordUpdateFailed(UserModel user, LDAPObject ldapUser, UserCredentialModel password, ModelException exception)
passwordUpdateFailed in interface PasswordUpdateCallbackpublic UserModel proxy(LDAPObject ldapUser, UserModel delegate, RealmModel realm)
LDAPStorageMapperproxy in interface LDAPStorageMapperpublic void onRegisterUserToLDAP(LDAPObject ldapUser, UserModel localUser, RealmModel realm)
LDAPStorageMapperonRegisterUserToLDAP in interface LDAPStorageMapperpublic void onImportUserFromLDAP(LDAPObject ldapUser, UserModel user, RealmModel realm, boolean isCreate)
LDAPStorageMapperonImportUserFromLDAP in interface LDAPStorageMapperisCreate - true if we importing new user from LDAP. False if user already exists in Keycloak, but we are upgrading (syncing) it from LDAPpublic boolean onAuthenticationFailure(LDAPObject ldapUser, UserModel user, AuthenticationException ldapException, RealmModel realm)
LDAPStorageMapperonAuthenticationFailure in interface LDAPStorageMapperonAuthenticationFailure in class AbstractLDAPStorageMapperprotected ModelException processFailedPasswordUpdateException(ModelException e)
Copyright © 2021 JBoss by Red Hat. All rights reserved.