public class UserAttributeLDAPFederationMapper extends AbstractLDAPFederationMapper
| Modifier and Type | Field and Description |
|---|---|
static String |
ALWAYS_READ_VALUE_FROM_LDAP |
static String |
IS_MANDATORY_IN_LDAP |
static String |
LDAP_ATTRIBUTE |
static String |
READ_ONLY |
static String |
USER_MODEL_ATTRIBUTE |
| Constructor and Description |
|---|
UserAttributeLDAPFederationMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeLDAPQuery(UserFederationMapperModel mapperModel,
LDAPQuery query)
Called before LDAP Identity query for retrieve LDAP users was executed.
|
protected void |
checkDuplicateEmail(String userModelAttrName,
String email,
RealmModel realm,
KeycloakSession session,
UserModel user) |
void |
onImportUserFromLDAP(UserFederationMapperModel mapperModel,
LDAPFederationProvider ldapProvider,
LDAPObject ldapUser,
UserModel user,
RealmModel realm,
boolean isCreate)
Called when importing user from LDAP to local keycloak DB.
|
void |
onRegisterUserToLDAP(UserFederationMapperModel mapperModel,
LDAPFederationProvider ldapProvider,
LDAPObject ldapUser,
UserModel localUser,
RealmModel realm)
Called when register new user to LDAP - just after user was created in Keycloak DB
|
UserModel |
proxy(UserFederationMapperModel mapperModel,
LDAPFederationProvider ldapProvider,
LDAPObject ldapUser,
UserModel delegate,
RealmModel realm)
Called when invoke proxy on LDAP federation provider
|
protected void |
setPropertyOnUserModel(Property<Object> userModelProperty,
UserModel user,
String ldapAttrValue) |
close, parseBooleanParameterpublic static final String USER_MODEL_ATTRIBUTE
public static final String LDAP_ATTRIBUTE
public static final String READ_ONLY
public static final String ALWAYS_READ_VALUE_FROM_LDAP
public static final String IS_MANDATORY_IN_LDAP
public void onImportUserFromLDAP(UserFederationMapperModel mapperModel, LDAPFederationProvider ldapProvider, LDAPObject ldapUser, UserModel user, RealmModel realm, boolean isCreate)
LDAPFederationMapperisCreate - true if we importing new user from LDAP. False if user already exists in Keycloak, but we are upgrading (syncing) it from LDAPpublic void onRegisterUserToLDAP(UserFederationMapperModel mapperModel, LDAPFederationProvider ldapProvider, LDAPObject ldapUser, UserModel localUser, RealmModel realm)
LDAPFederationMapperprotected void checkDuplicateEmail(String userModelAttrName, String email, RealmModel realm, KeycloakSession session, UserModel user)
public UserModel proxy(UserFederationMapperModel mapperModel, LDAPFederationProvider ldapProvider, LDAPObject ldapUser, UserModel delegate, RealmModel realm)
LDAPFederationMapperpublic void beforeLDAPQuery(UserFederationMapperModel mapperModel, LDAPQuery query)
LDAPFederationMapperCopyright © 2015 JBoss by Red Hat. All rights reserved.