UserFederation
# keycloak.ldap.UserFederation
Allows for creating and managing LDAP user federation providers within Keycloak.
Keycloak can use an LDAP user federation provider to federate users to Keycloak from a directory system such as LDAP or Active Directory. Federated users will exist within the realm and will be able to log in to clients. Federated users can have their attributes defined using mappers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as keycloak from "@pulumi/keycloak";
const realm = new keycloak.Realm("realm", {
enabled: true,
realm: "test",
});
const ldapUserFederation = new keycloak.ldap.UserFederation("ldap_user_federation", {
bindCredential: "admin",
bindDn: "cn=admin,dc=example,dc=org",
connectionTimeout: "5s",
connectionUrl: "ldap://openldap",
enabled: true,
rdnLdapAttribute: "cn",
readTimeout: "10s",
realmId: realm.id,
userObjectClasses: [
"simpleSecurityObject",
"organizationalRole",
],
usernameLdapAttribute: "cn",
usersDn: "dc=example,dc=org",
uuidLdapAttribute: "entryDN",
});import pulumi
import pulumi_keycloak as keycloak
realm = keycloak.Realm("realm",
enabled=True,
realm="test")
ldap_user_federation = keycloak.ldap.UserFederation("ldapUserFederation",
bind_credential="admin",
bind_dn="cn=admin,dc=example,dc=org",
connection_timeout="5s",
connection_url="ldap://openldap",
enabled=True,
rdn_ldap_attribute="cn",
read_timeout="10s",
realm_id=realm.id,
user_object_classes=[
"simpleSecurityObject",
"organizationalRole",
],
username_ldap_attribute="cn",
users_dn="dc=example,dc=org",
uuid_ldap_attribute="entryDN")using Pulumi;
using Keycloak = Pulumi.Keycloak;
class MyStack : Stack
{
public MyStack()
{
var realm = new Keycloak.Realm("realm", new Keycloak.RealmArgs
{
Enabled = true,
Realm = "test",
});
var ldapUserFederation = new Keycloak.Ldap.UserFederation("ldapUserFederation", new Keycloak.Ldap.UserFederationArgs
{
BindCredential = "admin",
BindDn = "cn=admin,dc=example,dc=org",
ConnectionTimeout = "5s",
ConnectionUrl = "ldap://openldap",
Enabled = true,
RdnLdapAttribute = "cn",
ReadTimeout = "10s",
RealmId = realm.Id,
UserObjectClasses =
{
"simpleSecurityObject",
"organizationalRole",
},
UsernameLdapAttribute = "cn",
UsersDn = "dc=example,dc=org",
UuidLdapAttribute = "entryDN",
});
}
}
Argument Reference
The following arguments are supported:
realm_id- (Required) The realm that this provider will provide user federation for.name- (Required) Display name of the provider when displayed in the console.enabled- (Optional) Whenfalse, this provider will not be used when performing queries for users. Defaults totrue.priority- (Optional) Priority of this provider when looking up users. Lower values are first. Defaults to0.import_enabled- (Optional) Whentrue, LDAP users will be imported into the Keycloak database. Defaults totrue.edit_mode- (Optional) Can be one ofREAD_ONLY,WRITABLE, orUNSYNCED.UNSYNCEDallows user data to be imported but not synced back to LDAP. Defaults toREAD_ONLY.sync_registrations- (Optional) Whentrue, newly created users will be synced back to LDAP. Defaults tofalse.vendor- (Optional) Can be one ofOTHER,EDIRECTORY,AD,RHDS, orTIVOLI. When this is selected in the GUI, it provides reasonable defaults for other fields. When used with the Keycloak API, this attribute does nothing, but is still required. Defaults toOPTIONAL.username_ldap_attribute- (Required) Name of the LDAP attribute to use as the Keycloak username.rdn_ldap_attribute- (Required) Name of the LDAP attribute to use as the relative distinguished name.uuid_ldap_attribute- (Required) Name of the LDAP attribute to use as a unique object identifier for objects in LDAP.user_object_classes- (Required) Array of all values of LDAP objectClass attribute for users in LDAP. Must contain at least one.connection_url- (Required) Connection URL to the LDAP server.users_dn- (Required) Full DN of LDAP tree where your users are.bind_dn- (Optional) DN of LDAP admin, which will be used by Keycloak to access LDAP server. This attribute must be set ifbind_credentialis set.bind_credential- (Optional) Password of LDAP admin. This attribute must be set ifbind_dnis set.custom_user_search_filter- (Optional) Additional LDAP filter for filtering searched users. Must begin with(and end with).search_scope- (Optional) Can be one ofONE_LEVELorSUBTREE:ONE_LEVEL: Only search for users in the DN specified byuser_dn.SUBTREE: Search entire LDAP subtree.
validate_password_policy- (Optional) Whentrue, Keycloak will validate passwords using the realm policy before updating it.use_truststore_spi- (Optional) Can be one ofALWAYS,ONLY_FOR_LDAPS, orNEVER:ALWAYS- Always use the truststore SPI for LDAP connections.NEVER- Never use the truststore SPI for LDAP connections.ONLY_FOR_LDAPS- Only use the truststore SPI if your LDAP connection uses the ldaps protocol.
connection_timeout- (Optional) LDAP connection timeout in the format of a Go duration string.read_timeout- (Optional) LDAP read timeout in the format of a Go duration string.pagination- (Optional) When true, Keycloak assumes the LDAP server supports pagination. Defaults totrue.batch_size_for_sync- (Optional) The number of users to sync within a single transaction. Defaults to1000.full_sync_period- (Optional) How frequently Keycloak should sync all LDAP users, in seconds. Omit this property to disable periodic full sync.changed_sync_period- (Optional) How frequently Keycloak should sync changed LDAP users, in seconds. Omit this property to disable periodic changed users sync.cache_policy- (Optional) Can be one ofDEFAULT,EVICT_DAILY,EVICT_WEEKLY,MAX_LIFESPAN, orNO_CACHE. Defaults toDEFAULT.
Create a UserFederation Resource
new UserFederation(name: string, args: UserFederationArgs, opts?: CustomResourceOptions);def UserFederation(resource_name, opts=None, batch_size_for_sync=None, bind_credential=None, bind_dn=None, cache_policy=None, changed_sync_period=None, connection_timeout=None, connection_url=None, custom_user_search_filter=None, edit_mode=None, enabled=None, full_sync_period=None, import_enabled=None, kerberos=None, name=None, pagination=None, priority=None, rdn_ldap_attribute=None, read_timeout=None, realm_id=None, search_scope=None, sync_registrations=None, use_truststore_spi=None, user_object_classes=None, username_ldap_attribute=None, users_dn=None, uuid_ldap_attribute=None, validate_password_policy=None, vendor=None, __props__=None);func NewUserFederation(ctx *Context, name string, args UserFederationArgs, opts ...ResourceOption) (*UserFederation, error)public UserFederation(string name, UserFederationArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args UserFederationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UserFederationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserFederationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
UserFederation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The UserFederation resource accepts the following input properties:
- Connection
Url string Connection URL to the LDAP server.
- Rdn
Ldap stringAttribute Name of the LDAP attribute to use as the relative distinguished name.
- Realm
Id string The realm this provider will provide user federation for.
- User
Object List<string>Classes All values of LDAP objectClass attribute for users in LDAP.
- Username
Ldap stringAttribute Name of the LDAP attribute to use as the Keycloak username.
- Users
Dn string Full DN of LDAP tree where your users are.
- Uuid
Ldap stringAttribute Name of the LDAP attribute to use as a unique object identifier for objects in LDAP.
- Batch
Size intFor Sync The number of users to sync within a single transaction.
- Bind
Credential string Password of LDAP admin.
- Bind
Dn string DN of LDAP admin, which will be used by Keycloak to access LDAP server.
- Cache
Policy string - Changed
Sync intPeriod How frequently Keycloak should sync changed LDAP users, in seconds. Omit this property to disable periodic changed users sync.
- Connection
Timeout string LDAP connection timeout (duration string)
- Custom
User stringSearch Filter Additional LDAP filter for filtering searched users. Must begin with ‘(’ and end with ‘)’.
- Edit
Mode string READ_ONLY and WRITABLE are self-explanatory. UNSYNCED allows user data to be imported but not synced back to LDAP.
- Enabled bool
When false, this provider will not be used when performing queries for users.
- Full
Sync intPeriod How frequently Keycloak should sync all LDAP users, in seconds. Omit this property to disable periodic full sync.
- Import
Enabled bool When true, LDAP users will be imported into the Keycloak database.
- Kerberos
User
Federation Kerberos Args Settings regarding kerberos authentication for this realm.
- Name string
Display name of the provider when displayed in the console.
- Pagination bool
When true, Keycloak assumes the LDAP server supports pagination.
- Priority int
Priority of this provider when looking up users. Lower values are first.
- Read
Timeout string LDAP read timeout (duration string)
- Search
Scope string ONE_LEVEL: only search for users in the DN specified by user_dn. SUBTREE: search entire LDAP subtree.
- Sync
Registrations bool When true, newly created users will be synced back to LDAP.
- Use
Truststore stringSpi - Validate
Password boolPolicy When true, Keycloak will validate passwords using the realm policy before updating it.
- Vendor string
LDAP vendor. I am almost certain this field does nothing, but the UI indicates that it is required.
- Connection
Url string Connection URL to the LDAP server.
- Rdn
Ldap stringAttribute Name of the LDAP attribute to use as the relative distinguished name.
- Realm
Id string The realm this provider will provide user federation for.
- User
Object []stringClasses All values of LDAP objectClass attribute for users in LDAP.
- Username
Ldap stringAttribute Name of the LDAP attribute to use as the Keycloak username.
- Users
Dn string Full DN of LDAP tree where your users are.
- Uuid
Ldap stringAttribute Name of the LDAP attribute to use as a unique object identifier for objects in LDAP.
- Batch
Size intFor Sync The number of users to sync within a single transaction.
- Bind
Credential string Password of LDAP admin.
- Bind
Dn string DN of LDAP admin, which will be used by Keycloak to access LDAP server.
- Cache
Policy string - Changed
Sync intPeriod How frequently Keycloak should sync changed LDAP users, in seconds. Omit this property to disable periodic changed users sync.
- Connection
Timeout string LDAP connection timeout (duration string)
- Custom
User stringSearch Filter Additional LDAP filter for filtering searched users. Must begin with ‘(’ and end with ‘)’.
- Edit
Mode string READ_ONLY and WRITABLE are self-explanatory. UNSYNCED allows user data to be imported but not synced back to LDAP.
- Enabled bool
When false, this provider will not be used when performing queries for users.
- Full
Sync intPeriod How frequently Keycloak should sync all LDAP users, in seconds. Omit this property to disable periodic full sync.
- Import
Enabled bool When true, LDAP users will be imported into the Keycloak database.
- Kerberos
User
Federation Kerberos Settings regarding kerberos authentication for this realm.
- Name string
Display name of the provider when displayed in the console.
- Pagination bool
When true, Keycloak assumes the LDAP server supports pagination.
- Priority int
Priority of this provider when looking up users. Lower values are first.
- Read
Timeout string LDAP read timeout (duration string)
- Search
Scope string ONE_LEVEL: only search for users in the DN specified by user_dn. SUBTREE: search entire LDAP subtree.
- Sync
Registrations bool When true, newly created users will be synced back to LDAP.
- Use
Truststore stringSpi - Validate
Password boolPolicy When true, Keycloak will validate passwords using the realm policy before updating it.
- Vendor string
LDAP vendor. I am almost certain this field does nothing, but the UI indicates that it is required.
- connection
Url string Connection URL to the LDAP server.
- rdn
Ldap stringAttribute Name of the LDAP attribute to use as the relative distinguished name.
- realm
Id string The realm this provider will provide user federation for.
- user
Object string[]Classes All values of LDAP objectClass attribute for users in LDAP.
- username
Ldap stringAttribute Name of the LDAP attribute to use as the Keycloak username.
- users
Dn string Full DN of LDAP tree where your users are.
- uuid
Ldap stringAttribute Name of the LDAP attribute to use as a unique object identifier for objects in LDAP.
- batch
Size numberFor Sync The number of users to sync within a single transaction.
- bind
Credential string Password of LDAP admin.
- bind
Dn string DN of LDAP admin, which will be used by Keycloak to access LDAP server.
- cache
Policy string - changed
Sync numberPeriod How frequently Keycloak should sync changed LDAP users, in seconds. Omit this property to disable periodic changed users sync.
- connection
Timeout string LDAP connection timeout (duration string)
- custom
User stringSearch Filter Additional LDAP filter for filtering searched users. Must begin with ‘(’ and end with ‘)’.
- edit
Mode string READ_ONLY and WRITABLE are self-explanatory. UNSYNCED allows user data to be imported but not synced back to LDAP.
- enabled boolean
When false, this provider will not be used when performing queries for users.
- full
Sync numberPeriod How frequently Keycloak should sync all LDAP users, in seconds. Omit this property to disable periodic full sync.
- import
Enabled boolean When true, LDAP users will be imported into the Keycloak database.
- kerberos
User
Federation Kerberos Settings regarding kerberos authentication for this realm.
- name string
Display name of the provider when displayed in the console.
- pagination boolean
When true, Keycloak assumes the LDAP server supports pagination.
- priority number
Priority of this provider when looking up users. Lower values are first.
- read
Timeout string LDAP read timeout (duration string)
- search
Scope string ONE_LEVEL: only search for users in the DN specified by user_dn. SUBTREE: search entire LDAP subtree.
- sync
Registrations boolean When true, newly created users will be synced back to LDAP.
- use
Truststore stringSpi - validate
Password booleanPolicy When true, Keycloak will validate passwords using the realm policy before updating it.
- vendor string
LDAP vendor. I am almost certain this field does nothing, but the UI indicates that it is required.
- connection_
url str Connection URL to the LDAP server.
- rdn_
ldap_ strattribute Name of the LDAP attribute to use as the relative distinguished name.
- realm_
id str The realm this provider will provide user federation for.
- user_
object_ List[str]classes All values of LDAP objectClass attribute for users in LDAP.
- username_
ldap_ strattribute Name of the LDAP attribute to use as the Keycloak username.
- users_
dn str Full DN of LDAP tree where your users are.
- uuid_
ldap_ strattribute Name of the LDAP attribute to use as a unique object identifier for objects in LDAP.
- batch_
size_ floatfor_ sync The number of users to sync within a single transaction.
- bind_
credential str Password of LDAP admin.
- bind_
dn str DN of LDAP admin, which will be used by Keycloak to access LDAP server.
- cache_
policy str - changed_
sync_ floatperiod How frequently Keycloak should sync changed LDAP users, in seconds. Omit this property to disable periodic changed users sync.
- connection_
timeout str LDAP connection timeout (duration string)
- custom_
user_ strsearch_ filter Additional LDAP filter for filtering searched users. Must begin with ‘(’ and end with ‘)’.
- edit_
mode str READ_ONLY and WRITABLE are self-explanatory. UNSYNCED allows user data to be imported but not synced back to LDAP.
- enabled bool
When false, this provider will not be used when performing queries for users.
- full_
sync_ floatperiod How frequently Keycloak should sync all LDAP users, in seconds. Omit this property to disable periodic full sync.
- import_
enabled bool When true, LDAP users will be imported into the Keycloak database.
- kerberos
Dict[User
Federation Kerberos] Settings regarding kerberos authentication for this realm.
- name str
Display name of the provider when displayed in the console.
- pagination bool
When true, Keycloak assumes the LDAP server supports pagination.
- priority float
Priority of this provider when looking up users. Lower values are first.
- read_
timeout str LDAP read timeout (duration string)
- search_
scope str ONE_LEVEL: only search for users in the DN specified by user_dn. SUBTREE: search entire LDAP subtree.
- sync_
registrations bool When true, newly created users will be synced back to LDAP.
- use_
truststore_ strspi - validate_
password_ boolpolicy When true, Keycloak will validate passwords using the realm policy before updating it.
- vendor str
LDAP vendor. I am almost certain this field does nothing, but the UI indicates that it is required.
Outputs
All input properties are implicitly available as output properties. Additionally, the UserFederation resource produces the following output properties:
Look up an Existing UserFederation Resource
Get an existing UserFederation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: UserFederationState, opts?: CustomResourceOptions): UserFederationstatic get(resource_name, id, opts=None, batch_size_for_sync=None, bind_credential=None, bind_dn=None, cache_policy=None, changed_sync_period=None, connection_timeout=None, connection_url=None, custom_user_search_filter=None, edit_mode=None, enabled=None, full_sync_period=None, import_enabled=None, kerberos=None, name=None, pagination=None, priority=None, rdn_ldap_attribute=None, read_timeout=None, realm_id=None, search_scope=None, sync_registrations=None, use_truststore_spi=None, user_object_classes=None, username_ldap_attribute=None, users_dn=None, uuid_ldap_attribute=None, validate_password_policy=None, vendor=None, __props__=None);func GetUserFederation(ctx *Context, name string, id IDInput, state *UserFederationState, opts ...ResourceOption) (*UserFederation, error)public static UserFederation Get(string name, Input<string> id, UserFederationState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Batch
Size intFor Sync The number of users to sync within a single transaction.
- Bind
Credential string Password of LDAP admin.
- Bind
Dn string DN of LDAP admin, which will be used by Keycloak to access LDAP server.
- Cache
Policy string - Changed
Sync intPeriod How frequently Keycloak should sync changed LDAP users, in seconds. Omit this property to disable periodic changed users sync.
- Connection
Timeout string LDAP connection timeout (duration string)
- Connection
Url string Connection URL to the LDAP server.
- Custom
User stringSearch Filter Additional LDAP filter for filtering searched users. Must begin with ‘(’ and end with ‘)’.
- Edit
Mode string READ_ONLY and WRITABLE are self-explanatory. UNSYNCED allows user data to be imported but not synced back to LDAP.
- Enabled bool
When false, this provider will not be used when performing queries for users.
- Full
Sync intPeriod How frequently Keycloak should sync all LDAP users, in seconds. Omit this property to disable periodic full sync.
- Import
Enabled bool When true, LDAP users will be imported into the Keycloak database.
- Kerberos
User
Federation Kerberos Args Settings regarding kerberos authentication for this realm.
- Name string
Display name of the provider when displayed in the console.
- Pagination bool
When true, Keycloak assumes the LDAP server supports pagination.
- Priority int
Priority of this provider when looking up users. Lower values are first.
- Rdn
Ldap stringAttribute Name of the LDAP attribute to use as the relative distinguished name.
- Read
Timeout string LDAP read timeout (duration string)
- Realm
Id string The realm this provider will provide user federation for.
- Search
Scope string ONE_LEVEL: only search for users in the DN specified by user_dn. SUBTREE: search entire LDAP subtree.
- Sync
Registrations bool When true, newly created users will be synced back to LDAP.
- Use
Truststore stringSpi - User
Object List<string>Classes All values of LDAP objectClass attribute for users in LDAP.
- Username
Ldap stringAttribute Name of the LDAP attribute to use as the Keycloak username.
- Users
Dn string Full DN of LDAP tree where your users are.
- Uuid
Ldap stringAttribute Name of the LDAP attribute to use as a unique object identifier for objects in LDAP.
- Validate
Password boolPolicy When true, Keycloak will validate passwords using the realm policy before updating it.
- Vendor string
LDAP vendor. I am almost certain this field does nothing, but the UI indicates that it is required.
- Batch
Size intFor Sync The number of users to sync within a single transaction.
- Bind
Credential string Password of LDAP admin.
- Bind
Dn string DN of LDAP admin, which will be used by Keycloak to access LDAP server.
- Cache
Policy string - Changed
Sync intPeriod How frequently Keycloak should sync changed LDAP users, in seconds. Omit this property to disable periodic changed users sync.
- Connection
Timeout string LDAP connection timeout (duration string)
- Connection
Url string Connection URL to the LDAP server.
- Custom
User stringSearch Filter Additional LDAP filter for filtering searched users. Must begin with ‘(’ and end with ‘)’.
- Edit
Mode string READ_ONLY and WRITABLE are self-explanatory. UNSYNCED allows user data to be imported but not synced back to LDAP.
- Enabled bool
When false, this provider will not be used when performing queries for users.
- Full
Sync intPeriod How frequently Keycloak should sync all LDAP users, in seconds. Omit this property to disable periodic full sync.
- Import
Enabled bool When true, LDAP users will be imported into the Keycloak database.
- Kerberos
User
Federation Kerberos Settings regarding kerberos authentication for this realm.
- Name string
Display name of the provider when displayed in the console.
- Pagination bool
When true, Keycloak assumes the LDAP server supports pagination.
- Priority int
Priority of this provider when looking up users. Lower values are first.
- Rdn
Ldap stringAttribute Name of the LDAP attribute to use as the relative distinguished name.
- Read
Timeout string LDAP read timeout (duration string)
- Realm
Id string The realm this provider will provide user federation for.
- Search
Scope string ONE_LEVEL: only search for users in the DN specified by user_dn. SUBTREE: search entire LDAP subtree.
- Sync
Registrations bool When true, newly created users will be synced back to LDAP.
- Use
Truststore stringSpi - User
Object []stringClasses All values of LDAP objectClass attribute for users in LDAP.
- Username
Ldap stringAttribute Name of the LDAP attribute to use as the Keycloak username.
- Users
Dn string Full DN of LDAP tree where your users are.
- Uuid
Ldap stringAttribute Name of the LDAP attribute to use as a unique object identifier for objects in LDAP.
- Validate
Password boolPolicy When true, Keycloak will validate passwords using the realm policy before updating it.
- Vendor string
LDAP vendor. I am almost certain this field does nothing, but the UI indicates that it is required.
- batch
Size numberFor Sync The number of users to sync within a single transaction.
- bind
Credential string Password of LDAP admin.
- bind
Dn string DN of LDAP admin, which will be used by Keycloak to access LDAP server.
- cache
Policy string - changed
Sync numberPeriod How frequently Keycloak should sync changed LDAP users, in seconds. Omit this property to disable periodic changed users sync.
- connection
Timeout string LDAP connection timeout (duration string)
- connection
Url string Connection URL to the LDAP server.
- custom
User stringSearch Filter Additional LDAP filter for filtering searched users. Must begin with ‘(’ and end with ‘)’.
- edit
Mode string READ_ONLY and WRITABLE are self-explanatory. UNSYNCED allows user data to be imported but not synced back to LDAP.
- enabled boolean
When false, this provider will not be used when performing queries for users.
- full
Sync numberPeriod How frequently Keycloak should sync all LDAP users, in seconds. Omit this property to disable periodic full sync.
- import
Enabled boolean When true, LDAP users will be imported into the Keycloak database.
- kerberos
User
Federation Kerberos Settings regarding kerberos authentication for this realm.
- name string
Display name of the provider when displayed in the console.
- pagination boolean
When true, Keycloak assumes the LDAP server supports pagination.
- priority number
Priority of this provider when looking up users. Lower values are first.
- rdn
Ldap stringAttribute Name of the LDAP attribute to use as the relative distinguished name.
- read
Timeout string LDAP read timeout (duration string)
- realm
Id string The realm this provider will provide user federation for.
- search
Scope string ONE_LEVEL: only search for users in the DN specified by user_dn. SUBTREE: search entire LDAP subtree.
- sync
Registrations boolean When true, newly created users will be synced back to LDAP.
- use
Truststore stringSpi - user
Object string[]Classes All values of LDAP objectClass attribute for users in LDAP.
- username
Ldap stringAttribute Name of the LDAP attribute to use as the Keycloak username.
- users
Dn string Full DN of LDAP tree where your users are.
- uuid
Ldap stringAttribute Name of the LDAP attribute to use as a unique object identifier for objects in LDAP.
- validate
Password booleanPolicy When true, Keycloak will validate passwords using the realm policy before updating it.
- vendor string
LDAP vendor. I am almost certain this field does nothing, but the UI indicates that it is required.
- batch_
size_ floatfor_ sync The number of users to sync within a single transaction.
- bind_
credential str Password of LDAP admin.
- bind_
dn str DN of LDAP admin, which will be used by Keycloak to access LDAP server.
- cache_
policy str - changed_
sync_ floatperiod How frequently Keycloak should sync changed LDAP users, in seconds. Omit this property to disable periodic changed users sync.
- connection_
timeout str LDAP connection timeout (duration string)
- connection_
url str Connection URL to the LDAP server.
- custom_
user_ strsearch_ filter Additional LDAP filter for filtering searched users. Must begin with ‘(’ and end with ‘)’.
- edit_
mode str READ_ONLY and WRITABLE are self-explanatory. UNSYNCED allows user data to be imported but not synced back to LDAP.
- enabled bool
When false, this provider will not be used when performing queries for users.
- full_
sync_ floatperiod How frequently Keycloak should sync all LDAP users, in seconds. Omit this property to disable periodic full sync.
- import_
enabled bool When true, LDAP users will be imported into the Keycloak database.
- kerberos
Dict[User
Federation Kerberos] Settings regarding kerberos authentication for this realm.
- name str
Display name of the provider when displayed in the console.
- pagination bool
When true, Keycloak assumes the LDAP server supports pagination.
- priority float
Priority of this provider when looking up users. Lower values are first.
- rdn_
ldap_ strattribute Name of the LDAP attribute to use as the relative distinguished name.
- read_
timeout str LDAP read timeout (duration string)
- realm_
id str The realm this provider will provide user federation for.
- search_
scope str ONE_LEVEL: only search for users in the DN specified by user_dn. SUBTREE: search entire LDAP subtree.
- sync_
registrations bool When true, newly created users will be synced back to LDAP.
- use_
truststore_ strspi - user_
object_ List[str]classes All values of LDAP objectClass attribute for users in LDAP.
- username_
ldap_ strattribute Name of the LDAP attribute to use as the Keycloak username.
- users_
dn str Full DN of LDAP tree where your users are.
- uuid_
ldap_ strattribute Name of the LDAP attribute to use as a unique object identifier for objects in LDAP.
- validate_
password_ boolpolicy When true, Keycloak will validate passwords using the realm policy before updating it.
- vendor str
LDAP vendor. I am almost certain this field does nothing, but the UI indicates that it is required.
Supporting Types
UserFederationKerberos
Package Details
- Repository
- https://github.com/pulumi/pulumi-keycloak
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
keycloakTerraform Provider.