Integrate upstream identity providers¶
This guide describes how to configure Charmed Authentik to delegate authentication, federate user logins, or synchronize directory attributes with upstream Identity Providers—specifically corporate Active Directory / LDAP servers or external SAML / OIDC federated identity systems.
Prerequisites¶
This guide assumes you have an active Charmed Authentik deployment matching the topology established in the Getting started tutorial. Specifically, you should have:
An active
authentik-serverdeployment integrated with its database and certificates.Access to the Authentik admin dashboard via your administrator credentials (
akadmin).A reachable upstream identity provider (OIDC social provider or LDAP server) accessible from your Kubernetes cluster.
Upstream LDAP and Active Directory synchronization¶
To sync existing enterprise user accounts and organizational groups from an on-premises LDAP server or Active Directory domain, you can configure an upstream LDAP Source.
Authentik runs background synchronization tasks to pull and reconcile directory states via the authentik-worker charm.
Step-by-step configuration¶
Access the Admin Panel: Log in to the Authentik admin dashboard.
Create the Upstream LDAP Source:
Navigate to Directory → Sources.
Select Create and select LDAP Source.
Configure Connection Parameters:
Name / Slug: Enter a unique identifier (e.g.
Active-Directory).Server URI: Enter the directory path (e.g.
ldaps://ad.example.com:636).Bind DN / Bind Password: Supply the service account credentials used to execute read queries against your Active Directory server (e.g.
cn=authentik-sync,cn=Users,dc=ad,dc=example,dc=com).Base DN: Specify the search scope under which users and groups reside (e.g.
dc=ad,dc=example,dc=com).
Map Attributes and Synced Groups:
Select Sync Users and Sync Groups.
(Optional) Configure property mapping templates to translate specific Active Directory fields (such as
sAMAccountNameormail) into Authentik properties.
Trigger Synchronization:
Once saved, select the newly created LDAP Source.
Under Status, select Run Sync to trigger an immediate reconciliation.
View progress logs in real-time. Background synchronization tasks are processed automatically by the
authentik-workercharm.
Upstream documentation references¶
For advanced federation and directory synchronization mapping rules, refer to the official upstream documentation:
Active Directory Sync Guide: Detailed attribute mapping patterns and group-matching filters can be found in the Upstream Active Directory Integration Guide.
Upstream Sources Overview: Refer to the Upstream Sources Reference for protocol listings and social sync configuration.