<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LDAP Archives | Clever Cloud</title>
	<atom:link href="https://www.clever.cloud/blog/tag/ldap/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.clever.cloud/blog/tag/ldap/</link>
	<description>From Code to Product</description>
	<lastBuildDate>Thu, 26 Nov 2026 18:02:28 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://cdn.clever-cloud.com/uploads/2023/03/cropped-cropped-favicon-32x32.png</url>
	<title>LDAP Archives | Clever Cloud</title>
	<link>https://www.clever.cloud/blog/tag/ldap/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Federating LDAP or Active Directory with Keycloak</title>
		<link>https://www.clever.cloud/blog/features/2026/11/26/keycloak-ldap-active-directory/</link>
		
		<dc:creator><![CDATA[Marjorie Darrigade]]></dc:creator>
		<pubDate>Thu, 26 Nov 2026 17:58:57 +0000</pubDate>
				<category><![CDATA[Features]]></category>
		<category><![CDATA[IAM]]></category>
		<category><![CDATA[keycloak]]></category>
		<category><![CDATA[LDAP]]></category>
		<guid isPermaLink="false">https://www.clever.cloud/?p=26088</guid>

					<description><![CDATA[<p><img width="800" height="355" src="https://cdn.clever-cloud.com/uploads/2026/11/2026-11-26-clever-cloud-banniere-blog-ldap-eng.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="LDAP" decoding="async" fetchpriority="high" srcset="https://cdn.clever-cloud.com/uploads/2026/11/2026-11-26-clever-cloud-banniere-blog-ldap-eng.png 800w, https://cdn.clever-cloud.com/uploads/2026/11/2026-11-26-clever-cloud-banniere-blog-ldap-eng-300x133.png 300w, https://cdn.clever-cloud.com/uploads/2026/11/2026-11-26-clever-cloud-banniere-blog-ldap-eng-768x341.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></p><!-- wp:paragraph -->
<p>For an IT department, federation addresses a common constraint: accounts already exist in a corporate directory, and recreating them elsewhere would be both costly and risky. Keycloak, an open source Identity and Access Management (IAM) solution, follows a simple principle: connect to that directory rather than replace it.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Identity federation without migrating accounts</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>In practice, Active Directory, Microsoft’s directory service, or an LDAP server such as OpenLDAP remains the authoritative source of identities. Keycloak queries it to authenticate users and give them access to connected applications.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>There are two benefits. First, there is no risky cutover: accounts stay where they are, and the directory remains authoritative. Second, it becomes the foundation for a single sign-on (SSO) point. Once users are federated, security policies, multifactor authentication (MFA), federation with other applications and logging, can be configured in Keycloak on top of the directory, without deploying them separately for each service.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">What Keycloak federates: LDAP and Active Directory</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Keycloak integrates directories through its User Federation feature, which covers two main types:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul class="wp-block-list"><!-- wp:list-item -->
<li><strong>Generic LDAP</strong> directories, such as OpenLDAP;</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li><strong>Active Directory</strong>, for which Keycloak offers settings tailored to Microsoft’s directory.</li>
<!-- /wp:list-item --></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>When creating the provider, selecting the directory vendor (Active Directory, Red Hat Directory Server, Novell eDirectory, Tivoli or another option) prepopulates the expected technical settings, such as the identifier attribute and object classes. This reduces the risk of errors. A single realm can have several providers and federate multiple directories in parallel.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Imports, synchronisation and edit modes: managing federated accounts</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>By default, when <strong>Import Users</strong> is enabled, Keycloak imports directory accounts and some of their attributes into its local database when users first sign in or during synchronisation. It does not import passwords from LDAP or Active Directory. As long as no password is set locally, the directory verifies them.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"40px"} -->
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:acf/avantages {"name":"acf/avantages","data":{"title":"Three edit modes","_title":"field_63878c81ae569","content":"determine how Keycloak handles changes:","_content":"field_63878c9cae56a","main_picture":"","_main_picture":"field_63878cd5ae56b","advantages_collection_0_picto":"","_advantages_collection_0_picto":"field_6397417cac52f","advantages_collection_0_title":"READ_ONLY","_advantages_collection_0_title":"field_63878d1aae56d","advantages_collection_0_content":"Keycloak does not change mapped attributes in the directory and does not allow passwords to be changed there.","_advantages_collection_0_content":"field_63878d4dae56e","advantages_collection_0_link":"","_advantages_collection_0_link":"field_63878d66ae56f","advantages_collection_1_picto":"","_advantages_collection_1_picto":"field_6397417cac52f","advantages_collection_1_title":"WRITABLE","_advantages_collection_1_title":"field_63878d1aae56d","advantages_collection_1_content":"Changes to mapped attributes and passwords made in Keycloak are written to the directory, provided the account used for the connection has the necessary permissions.","_advantages_collection_1_content":"field_63878d4dae56e","advantages_collection_1_link":"","_advantages_collection_1_link":"field_63878d66ae56f","advantages_collection_2_picto":"","_advantages_collection_2_picto":"field_6397417cac52f","advantages_collection_2_title":"UNSYNCED","_advantages_collection_2_title":"field_63878d1aae56d","advantages_collection_2_content":"When users are imported, changes made in Keycloak, including a new password, are kept locally and are not automatically written back to the directory. The data can therefore diverge.","_advantages_collection_2_content":"field_63878d4dae56e","advantages_collection_2_link":"","_advantages_collection_2_link":"field_63878d66ae56f","advantages_collection":3,"_advantages_collection":"field_63878cecae56c"},"mode":"auto"} /-->

<!-- wp:paragraph -->
<p>It is best to choose the mode when creating the provider: Keycloak configures its mappers accordingly. Changing the mode later does not automatically reconfigure mappers that have already been created.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Federating LDAP or Active Directory, step by step</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The process is the same for self-hosted and managed Keycloak; only the way you access the administration console differs.</p>
<!-- /wp:paragraph -->

<!-- wp:acf/arguments {"name":"acf/arguments","data":{"items_0_title":"Access the administration console","_items_0_title":"field_638a066e4d2ec","items_0_short_description":"Sign in with an administrator account for the relevant realm. On Clever Cloud’s managed Keycloak service, the console address and initial credentials are available in the service’s environment variables (CC_KEYCLOAK_ADMIN_URL, CC_KEYCLOAK_ADMIN, CC_KEYCLOAK_ADMIN_DEFAULT_PASSWORD).","_items_0_short_description":"field_638a068d4d2ed","items_0_full_description":"","_items_0_full_description":"field_638a06af4d2ee","items_1_title":"Add an LDAP provider","_items_1_title":"field_638a066e4d2ec","items_1_short_description":"In the User Federation menu, add an LDAP provider, then select the directory vendor. Choosing Active Directory or an LDAP directory presets the corresponding settings.","_items_1_short_description":"field_638a068d4d2ed","items_1_full_description":"","_items_1_full_description":"field_638a06af4d2ee","items_2_title":"Enter the connection details","_items_2_title":"field_638a066e4d2ec","items_2_short_description":"Provide the directory address (Connection URL) and the service account Keycloak uses to query it (Bind DN and password). In production, use LDAPS or StartTLS and check that Keycloak trusts the certificate presented by the directory. The Test connection and Test authentication buttons validate network access and credentials respectively.","_items_2_short_description":"field_638a068d4d2ed","items_2_full_description":"","_items_2_full_description":"field_638a06af4d2ee","items_3_title":"Define the users to federate","_items_3_title":"field_638a066e4d2ec","items_3_short_description":"Enter the directory branch (Users DN) and, if needed, an LDAP filter to limit which accounts are included.","_items_3_short_description":"field_638a068d4d2ed","items_3_full_description":"","_items_3_full_description":"field_638a06af4d2ee","items_4_title":"Choose the edit mode","_items_4_title":"field_638a066e4d2ec","items_4_short_description":"Set READ_ONLY, WRITABLE or UNSYNCED, depending on whether the directory must remain the only place where changes are written. This is a key decision.","_items_4_short_description":"field_638a068d4d2ed","items_4_full_description":"","_items_4_full_description":"field_638a06af4d2ee","items_5_title":"Configure synchronisation","_items_5_title":"field_638a066e4d2ec","items_5_short_description":"Leave imports enabled to copy accounts into Keycloak, then enable periodic synchronisation if needed, either in full and/or for modified users only.","_items_5_short_description":"field_638a068d4d2ed","items_5_full_description":"","_items_5_full_description":"field_638a06af4d2ee","items_6_title":"Import and verify","_items_6_title":"field_638a066e4d2ec","items_6_short_description":"Save the provider, run Synchronize all users for an initial full import, then test an end-to-end sign-in with a directory account.","_items_6_short_description":"field_638a068d4d2ed","items_6_full_description":"","_items_6_full_description":"field_638a06af4d2ee","items":7,"_items":"field_638a065a4d2eb"},"mode":"preview"} /-->

<!-- wp:paragraph -->
<p>The <a href="https://www.clever.cloud/developers/doc/addons/keycloak/">Keycloak documentation on Clever Cloud</a> covers each screen and advanced cases, including directory federation, IP address filtering and clustered deployments. To connect your applications to this authentication point, see our article <a href="https://www.clever.cloud/blog/features/2026/10/28/configure-keycloak-sso/">Configuring SSO with Keycloak</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Synchronisation and mappers: keeping identities up to date</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Once the directory is federated, two mechanisms maintain consistency:</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Synchronisation</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Keycloak recommends a full import (<strong>Synchronize all users</strong>) during setup, followed by periodic synchronisation of users created or modified since the previous run. Full synchronisation processes all users in scope; only change synchronisation is limited to recently created or modified accounts.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Mappers</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>When the LDAP provider is created, Keycloak sets up mappings for common attributes such as the identifier, email address and name. Group or role mappers can also be configured to map directory memberships to those in Keycloak; not all groups and roles are imported automatically.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Active Directory: seamless authentication with Kerberos</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>On devices joined to an Active Directory domain, Keycloak can offer seamless sign-in through Kerberos/SPNEGO. This requires Kerberos configuration in Keycloak, activation of the method in the authentication flow and a browser authorised to send the ticket. If a user has a valid ticket, Keycloak can authenticate them without asking for their password again; otherwise, the usual sign-in form can remain available. This option complements LDAP federation, but connecting to Active Directory does not enable it automatically.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Fédérer un annuaire sur un Keycloak managé</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The configuration described above does not change with managed Keycloak. What changes is the operational work around it. A server that federates a directory must remain available, up to date and backed up: a managed service takes care of these operations.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><a href="https://www.clever.cloud/product/managed-keycloak-as-a-service/">Keycloak as a Service</a>, Clever Cloud’s offering operated with the expertise of <a href="https://please-open.it/">Please Open It</a>, deploys a managed Keycloak instance hosted in France. The service supports directory federation via LDAP (Active Directory and OpenLDAP), while the platform handles updates, monitoring and backups. High availability requires a multi-node cluster deployment. Teams remain responsible for the configuration that meets their needs: the LDAP provider, edit mode, mappers and synchronisation.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>One consideration specific to federation is that Keycloak must be able to reach the directory over the network. If the directory is hosted within the company’s IT system, connectivity between the managed service and the directory must be arranged without exposing the directory publicly.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"55px"} -->
<div style="height:55px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph -->
<p>« Some directories have had several lives: multiple ‘structures’ may exist within groups or organisational units. To bring several user populations together, it is possible and recommended to set up multiple federations to the same directory, using filters to select each population and apply specific mappers. This allows you to establish a common user model in Keycloak. »</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>— Mathieu Passenaud, Co-founder at Please Open It</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"55px"} -->
<div style="height:55px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph -->
<p>Evaluating an IAM solution? Our checklist, <a href="https://cdn.clever-cloud.com/uploads/2026/08/eng11-questions-before-choosing-an-identity-management-solution.pdf">11 questions to ask before choosing an identity management solution</a>, brings together the criteria to check before making a commitment.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"80px"} -->
<div style="height:80px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:html -->
<div style="height: 1px; background-color: #DEDDEE; margin: 30px auto; width: 100%;"></div>
<!-- /wp:html -->

<!-- wp:heading {"style":{"typography":{"textAlign":"center"}}} -->
<h2 class="wp-block-heading has-text-align-center">FAQ</h2>
<!-- /wp:heading -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Can Keycloak connect to Active Directory?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Yes. Through User Federation, Keycloak connects to Active Directory as it does to a generic LDAP directory such as OpenLDAP. It offers settings tailored to Microsoft’s directory and can add Kerberos authentication for domain-joined devices.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Does Keycloak import passwords from the directory?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>No. Keycloak does not import passwords from LDAP or Active Directory. It normally verifies federated users’ passwords against the directory. In <strong>UNSYNCED</strong> mode, however, a new password set in Keycloak can be stored and used locally.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">What is the difference between READ_ONLY, WRITABLE and UNSYNCED?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><strong>READ_ONLY</strong> treats the directory as read-only: Keycloak does not write to it. <strong>WRITABLE</strong> writes changes made in Keycloak back to the directory. <strong>UNSYNCED</strong> imports accounts but keeps changes in Keycloak without writing them back. The mode is chosen when the provider is created.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Do users need to be migrated to use Keycloak?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>No. Federation connects Keycloak to the existing directory without moving accounts; the directory remains the authoritative source. Migration is a separate process.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Can a directory be federated with managed Keycloak?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Yes. Federation is configured in the same way. Clever Cloud’s Keycloak as a Service supports federation via LDAP (Active Directory and OpenLDAP), while the platform handles server operations, including updates, availability and backups. Keycloak must be able to reach the directory over the network.</p>
<!-- /wp:paragraph -->]]></description>
										<content:encoded><![CDATA[<p><img width="800" height="355" src="https://cdn.clever-cloud.com/uploads/2026/11/2026-11-26-clever-cloud-banniere-blog-ldap-eng.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="LDAP" decoding="async" srcset="https://cdn.clever-cloud.com/uploads/2026/11/2026-11-26-clever-cloud-banniere-blog-ldap-eng.png 800w, https://cdn.clever-cloud.com/uploads/2026/11/2026-11-26-clever-cloud-banniere-blog-ldap-eng-300x133.png 300w, https://cdn.clever-cloud.com/uploads/2026/11/2026-11-26-clever-cloud-banniere-blog-ldap-eng-768x341.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></p><!-- wp:paragraph -->
<p>For an IT department, federation addresses a common constraint: accounts already exist in a corporate directory, and recreating them elsewhere would be both costly and risky. Keycloak, an open source Identity and Access Management (IAM) solution, follows a simple principle: connect to that directory rather than replace it.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Identity federation without migrating accounts</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>In practice, Active Directory, Microsoft’s directory service, or an LDAP server such as OpenLDAP remains the authoritative source of identities. Keycloak queries it to authenticate users and give them access to connected applications.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>There are two benefits. First, there is no risky cutover: accounts stay where they are, and the directory remains authoritative. Second, it becomes the foundation for a single sign-on (SSO) point. Once users are federated, security policies, multifactor authentication (MFA), federation with other applications and logging, can be configured in Keycloak on top of the directory, without deploying them separately for each service.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">What Keycloak federates: LDAP and Active Directory</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Keycloak integrates directories through its User Federation feature, which covers two main types:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul class="wp-block-list"><!-- wp:list-item -->
<li><strong>Generic LDAP</strong> directories, such as OpenLDAP;</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li><strong>Active Directory</strong>, for which Keycloak offers settings tailored to Microsoft’s directory.</li>
<!-- /wp:list-item --></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>When creating the provider, selecting the directory vendor (Active Directory, Red Hat Directory Server, Novell eDirectory, Tivoli or another option) prepopulates the expected technical settings, such as the identifier attribute and object classes. This reduces the risk of errors. A single realm can have several providers and federate multiple directories in parallel.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Imports, synchronisation and edit modes: managing federated accounts</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>By default, when <strong>Import Users</strong> is enabled, Keycloak imports directory accounts and some of their attributes into its local database when users first sign in or during synchronisation. It does not import passwords from LDAP or Active Directory. As long as no password is set locally, the directory verifies them.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"40px"} -->
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:acf/avantages {"name":"acf/avantages","data":{"title":"Three edit modes","_title":"field_63878c81ae569","content":"determine how Keycloak handles changes:","_content":"field_63878c9cae56a","main_picture":"","_main_picture":"field_63878cd5ae56b","advantages_collection_0_picto":"","_advantages_collection_0_picto":"field_6397417cac52f","advantages_collection_0_title":"READ_ONLY","_advantages_collection_0_title":"field_63878d1aae56d","advantages_collection_0_content":"Keycloak does not change mapped attributes in the directory and does not allow passwords to be changed there.","_advantages_collection_0_content":"field_63878d4dae56e","advantages_collection_0_link":"","_advantages_collection_0_link":"field_63878d66ae56f","advantages_collection_1_picto":"","_advantages_collection_1_picto":"field_6397417cac52f","advantages_collection_1_title":"WRITABLE","_advantages_collection_1_title":"field_63878d1aae56d","advantages_collection_1_content":"Changes to mapped attributes and passwords made in Keycloak are written to the directory, provided the account used for the connection has the necessary permissions.","_advantages_collection_1_content":"field_63878d4dae56e","advantages_collection_1_link":"","_advantages_collection_1_link":"field_63878d66ae56f","advantages_collection_2_picto":"","_advantages_collection_2_picto":"field_6397417cac52f","advantages_collection_2_title":"UNSYNCED","_advantages_collection_2_title":"field_63878d1aae56d","advantages_collection_2_content":"When users are imported, changes made in Keycloak, including a new password, are kept locally and are not automatically written back to the directory. The data can therefore diverge.","_advantages_collection_2_content":"field_63878d4dae56e","advantages_collection_2_link":"","_advantages_collection_2_link":"field_63878d66ae56f","advantages_collection":3,"_advantages_collection":"field_63878cecae56c"},"mode":"auto"} /-->

<!-- wp:paragraph -->
<p>It is best to choose the mode when creating the provider: Keycloak configures its mappers accordingly. Changing the mode later does not automatically reconfigure mappers that have already been created.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Federating LDAP or Active Directory, step by step</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The process is the same for self-hosted and managed Keycloak; only the way you access the administration console differs.</p>
<!-- /wp:paragraph -->

<!-- wp:acf/arguments {"name":"acf/arguments","data":{"items_0_title":"Access the administration console","_items_0_title":"field_638a066e4d2ec","items_0_short_description":"Sign in with an administrator account for the relevant realm. On Clever Cloud’s managed Keycloak service, the console address and initial credentials are available in the service’s environment variables (CC_KEYCLOAK_ADMIN_URL, CC_KEYCLOAK_ADMIN, CC_KEYCLOAK_ADMIN_DEFAULT_PASSWORD).","_items_0_short_description":"field_638a068d4d2ed","items_0_full_description":"","_items_0_full_description":"field_638a06af4d2ee","items_1_title":"Add an LDAP provider","_items_1_title":"field_638a066e4d2ec","items_1_short_description":"In the User Federation menu, add an LDAP provider, then select the directory vendor. Choosing Active Directory or an LDAP directory presets the corresponding settings.","_items_1_short_description":"field_638a068d4d2ed","items_1_full_description":"","_items_1_full_description":"field_638a06af4d2ee","items_2_title":"Enter the connection details","_items_2_title":"field_638a066e4d2ec","items_2_short_description":"Provide the directory address (Connection URL) and the service account Keycloak uses to query it (Bind DN and password). In production, use LDAPS or StartTLS and check that Keycloak trusts the certificate presented by the directory. The Test connection and Test authentication buttons validate network access and credentials respectively.","_items_2_short_description":"field_638a068d4d2ed","items_2_full_description":"","_items_2_full_description":"field_638a06af4d2ee","items_3_title":"Define the users to federate","_items_3_title":"field_638a066e4d2ec","items_3_short_description":"Enter the directory branch (Users DN) and, if needed, an LDAP filter to limit which accounts are included.","_items_3_short_description":"field_638a068d4d2ed","items_3_full_description":"","_items_3_full_description":"field_638a06af4d2ee","items_4_title":"Choose the edit mode","_items_4_title":"field_638a066e4d2ec","items_4_short_description":"Set READ_ONLY, WRITABLE or UNSYNCED, depending on whether the directory must remain the only place where changes are written. This is a key decision.","_items_4_short_description":"field_638a068d4d2ed","items_4_full_description":"","_items_4_full_description":"field_638a06af4d2ee","items_5_title":"Configure synchronisation","_items_5_title":"field_638a066e4d2ec","items_5_short_description":"Leave imports enabled to copy accounts into Keycloak, then enable periodic synchronisation if needed, either in full and/or for modified users only.","_items_5_short_description":"field_638a068d4d2ed","items_5_full_description":"","_items_5_full_description":"field_638a06af4d2ee","items_6_title":"Import and verify","_items_6_title":"field_638a066e4d2ec","items_6_short_description":"Save the provider, run Synchronize all users for an initial full import, then test an end-to-end sign-in with a directory account.","_items_6_short_description":"field_638a068d4d2ed","items_6_full_description":"","_items_6_full_description":"field_638a06af4d2ee","items":7,"_items":"field_638a065a4d2eb"},"mode":"preview"} /-->

<!-- wp:paragraph -->
<p>The <a href="https://www.clever.cloud/developers/doc/addons/keycloak/">Keycloak documentation on Clever Cloud</a> covers each screen and advanced cases, including directory federation, IP address filtering and clustered deployments. To connect your applications to this authentication point, see our article <a href="https://www.clever.cloud/blog/features/2026/10/28/configure-keycloak-sso/">Configuring SSO with Keycloak</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Synchronisation and mappers: keeping identities up to date</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Once the directory is federated, two mechanisms maintain consistency:</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Synchronisation</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Keycloak recommends a full import (<strong>Synchronize all users</strong>) during setup, followed by periodic synchronisation of users created or modified since the previous run. Full synchronisation processes all users in scope; only change synchronisation is limited to recently created or modified accounts.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Mappers</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>When the LDAP provider is created, Keycloak sets up mappings for common attributes such as the identifier, email address and name. Group or role mappers can also be configured to map directory memberships to those in Keycloak; not all groups and roles are imported automatically.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Active Directory: seamless authentication with Kerberos</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>On devices joined to an Active Directory domain, Keycloak can offer seamless sign-in through Kerberos/SPNEGO. This requires Kerberos configuration in Keycloak, activation of the method in the authentication flow and a browser authorised to send the ticket. If a user has a valid ticket, Keycloak can authenticate them without asking for their password again; otherwise, the usual sign-in form can remain available. This option complements LDAP federation, but connecting to Active Directory does not enable it automatically.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"25px"} -->
<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class="wp-block-heading">Fédérer un annuaire sur un Keycloak managé</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The configuration described above does not change with managed Keycloak. What changes is the operational work around it. A server that federates a directory must remain available, up to date and backed up: a managed service takes care of these operations.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><a href="https://www.clever.cloud/product/managed-keycloak-as-a-service/">Keycloak as a Service</a>, Clever Cloud’s offering operated with the expertise of <a href="https://please-open.it/">Please Open It</a>, deploys a managed Keycloak instance hosted in France. The service supports directory federation via LDAP (Active Directory and OpenLDAP), while the platform handles updates, monitoring and backups. High availability requires a multi-node cluster deployment. Teams remain responsible for the configuration that meets their needs: the LDAP provider, edit mode, mappers and synchronisation.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>One consideration specific to federation is that Keycloak must be able to reach the directory over the network. If the directory is hosted within the company’s IT system, connectivity between the managed service and the directory must be arranged without exposing the directory publicly.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"55px"} -->
<div style="height:55px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph -->
<p>« Some directories have had several lives: multiple ‘structures’ may exist within groups or organisational units. To bring several user populations together, it is possible and recommended to set up multiple federations to the same directory, using filters to select each population and apply specific mappers. This allows you to establish a common user model in Keycloak. »</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>— Mathieu Passenaud, Co-founder at Please Open It</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"55px"} -->
<div style="height:55px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph -->
<p>Evaluating an IAM solution? Our checklist, <a href="https://cdn.clever-cloud.com/uploads/2026/08/eng11-questions-before-choosing-an-identity-management-solution.pdf">11 questions to ask before choosing an identity management solution</a>, brings together the criteria to check before making a commitment.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"80px"} -->
<div style="height:80px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:html -->
<div style="height: 1px; background-color: #DEDDEE; margin: 30px auto; width: 100%;"></div>
<!-- /wp:html -->

<!-- wp:heading {"style":{"typography":{"textAlign":"center"}}} -->
<h2 class="wp-block-heading has-text-align-center">FAQ</h2>
<!-- /wp:heading -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Can Keycloak connect to Active Directory?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Yes. Through User Federation, Keycloak connects to Active Directory as it does to a generic LDAP directory such as OpenLDAP. It offers settings tailored to Microsoft’s directory and can add Kerberos authentication for domain-joined devices.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Does Keycloak import passwords from the directory?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>No. Keycloak does not import passwords from LDAP or Active Directory. It normally verifies federated users’ passwords against the directory. In <strong>UNSYNCED</strong> mode, however, a new password set in Keycloak can be stored and used locally.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">What is the difference between READ_ONLY, WRITABLE and UNSYNCED?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><strong>READ_ONLY</strong> treats the directory as read-only: Keycloak does not write to it. <strong>WRITABLE</strong> writes changes made in Keycloak back to the directory. <strong>UNSYNCED</strong> imports accounts but keeps changes in Keycloak without writing them back. The mode is chosen when the provider is created.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Do users need to be migrated to use Keycloak?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>No. Federation connects Keycloak to the existing directory without moving accounts; the directory remains the authoritative source. Migration is a separate process.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Can a directory be federated with managed Keycloak?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Yes. Federation is configured in the same way. Clever Cloud’s Keycloak as a Service supports federation via LDAP (Active Directory and OpenLDAP), while the platform handles server operations, including updates, availability and backups. Keycloak must be able to reach the directory over the network.</p>
<!-- /wp:paragraph -->]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
