public class HardcodedLDAPAttributeMapper extends AbstractLDAPStorageMapper
Modifier and Type | Field and Description |
---|---|
static String |
LDAP_ATTRIBUTE_NAME |
static String |
LDAP_ATTRIBUTE_VALUE |
static String |
RANDOM_ATTRIBUTE_VALUE
When this is configured as LDAP_ATTRIBUTE_VALUE, the mapper will use randomly generated value
|
static Pattern |
substitution |
ldapProvider, mapperModel, session
Constructor and Description |
---|
HardcodedLDAPAttributeMapper(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.
|
protected String |
computeAttributeValue(String ldapAttrName,
String ldapAttrValue,
LDAPObject ldapUser,
UserModel localUser,
RealmModel realm) |
protected String |
getRandomValue() |
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
|
UserModel |
proxy(LDAPObject ldapUser,
UserModel delegate,
RealmModel realm)
Called when invoke proxy on LDAP federation provider
|
close, getGroupMembers, getLdapProvider, getRoleMembers, onAuthenticationFailure, parseBooleanParameter, syncDataFromFederationProviderToKeycloak, syncDataFromKeycloakToFederationProvider
public static final String LDAP_ATTRIBUTE_NAME
public static final String LDAP_ATTRIBUTE_VALUE
public static final String RANDOM_ATTRIBUTE_VALUE
public static Pattern substitution
public HardcodedLDAPAttributeMapper(ComponentModel mapperModel, LDAPStorageProvider ldapProvider)
public void onRegisterUserToLDAP(LDAPObject ldapUser, UserModel localUser, RealmModel realm)
LDAPStorageMapper
protected String computeAttributeValue(String ldapAttrName, String ldapAttrValue, LDAPObject ldapUser, UserModel localUser, RealmModel realm)
protected String getRandomValue()
public void onImportUserFromLDAP(LDAPObject ldapUser, UserModel user, RealmModel realm, boolean isCreate)
LDAPStorageMapper
isCreate
- true if we importing new user from LDAP. False if user already exists in Keycloak, but we are upgrading (syncing) it from LDAPpublic UserModel proxy(LDAPObject ldapUser, UserModel delegate, RealmModel realm)
LDAPStorageMapper
public void beforeLDAPQuery(LDAPQuery query)
LDAPStorageMapper
Copyright © 2021 JBoss by Red Hat. All rights reserved.