- Technology stack
- Architecture of the Solution
- Installing and Configuring MULTIDIRECTORY
- Configuring Kerberos in the MULTIDIRECTORY Web Interface
- Configuring DNS in the MULTIDIRECTORY Web Interface
- DHCP Configuration
- Domain Trust Configuration
- Group Policy
- Connecting MULTIFACTOR Self-Service Portal to MULTIDIRECTORY
- User, Group, and Resource Management
- Connecting to MULTIFACTOR
- Access Policies
- LDAP Schema
- LDAP Logging Configuration
- Password Policies
- Role and Permission Configuration
- LDAP Authentication in Ansible AWX
- LDAP Authentication in ArgoCD
- LDAP Authentication in GitLab
- LDAP Authentication in GitFlic
- LDAP Authentication in Jenkins
- LDAP Authentication in Harbor
- LDAP Authentication in Nexus
- LDAP Authentication in PostgreSQL
- LDAP Authentication in Rancher
- LDAP Authentication in Proxmox VE
- LDAP Authentication in SpaceVM
- LDAP Authentication in Tantor
- LDAP Authentication in Shturval
- LDAP Authentication in zVirt
- LDAP Authentication in GLPI
LDAP Authentication Setup Guide for Keycloak
Overview
This article describes how to configure LDAP authentication in Keycloak, using MULTIDIRECTORY as the identity provider.
Setup Requirements
- A running MULTIDIRECTORY instance.
- A pre-installed Keycloak server.
Preparation
- Create a dedicated service account in
MULTIDIRECTORYwith read-only permissions to the directory. This account will be used by Keycloak to authenticate and synchronize users - (Optional) Grant this service account write permissions if you intend to allow Keycloak to modify user data in
MULTIDIRECTORY(e.g., update attributes or passwords).
Configuring LDAP Authentication in Keycloak
- Log in to the Keycloak Admin Console.
- Navigate to «User Federation» in the left-hand menu.
- Click «Add LDAP Provider» to begin the integration setup.

Below are descriptions of the required fields and examples of how to fill them out.
General Options
- UI Display Name — The name that will be shown in the administrator interface for this identity provider.
Example: MULTIDIRECTORY LDAP - Vendor — Specifies the LDAP vendor type. Choose the option that best matches your directory service.
Example: Active Directory (if MULTIDIRECTORY emulates AD) or Other for generic LDAP compatibility.

Connection and Authentication Settings
- Connection URL — The LDAP server connection address in the format ldap://your-ldap-server:389 or ldaps://your-ldap-server:636.
Example: ldap://multidirectory.example.com:389 - Bind Type — The authentication method used during LDAP bind operations. Only two options are typically available:
— none — anonymous bind (not supported by MULTIDIRECTORY)
— simple — uses a DN and password for authentication (recommended for MULTIDIRECTORY) - Bind DN — The Distinguished Name of the service account that Keycloak will use to connect to MULTIDIRECTORY. This account must have read (and optionally write) permissions to the entire directory.
Example: cn=keycloak-reader,ou=service,dc=example,dc=com - Bind Credentials — The password for the Bind DN account specified above.
- Test Authentication — Initiates a test connection to your MULTIDIRECTORY instance using the provided credentials to verify that Keycloak can successfully authenticate and communicate with the LDAP server.

LDAP Searching and Updating
- Edit Mode — Dropdown setting that defines how Keycloak interacts with the LDAP directory:
- READ_ONLY: Users are imported from LDAP, but no changes are written back.
- WRITABLE: User data can be synchronized back to LDAP (e.g., password or profile updates).
- UNSYNCED: Users are imported once and never synced again—changes in Keycloak won’t affect LDAP, and LDAP changes won’t update Keycloak.
- Users DN — The full Distinguished Name (DN) of the LDAP subtree where user entries reside. This is the parent container for all users.
Example: ou=Users,dc=example,dc=com - Username LDAP Attribute — The LDAP attribute used as the username in Keycloak. For MULTIDIRECTORY, common values are:
sAMAccountName (for Windows-style logins)
cn (Common Name)
This attribute must be populated for every user you intend to import. - RDN LDAP Attribute — The Relative Distinguished Name (RDN) attribute used when creating new user entries in LDAP. It typically matches the Username attribute but may differ.
For MULTIDIRECTORY: Often cn is used as RDN even if sAMAccountName is the login name. - UUID LDAP Attribute — The LDAP attribute that uniquely identifies each object. Keycloak uses this to track users across syncs.
For MULTIDIRECTORY: Use objectGUID. - User Object Classes — A comma-separated list of objectClass values that define user entries in your LDAP directory. Only entries containing all listed classes will be recognized as users. New users created via Keycloak will be written with these object classes.
Example: top,person,organizationalPerson,user (typical for Active Directory–compatible systems like MULTIDIRECTORY)

After completing the configuration, click the «Save» button.
Mappers
To enable synchronization of all available groups from MULTIDIRECTORY, you need to configure a mapper:
- Select the previously configured LDAP connection.
- Go to the «User Federation» menu.

In the window that opens, switch to the «Mappers» tab at the top of the screen and click the «Add mapper» button.
In the mapper creation window, enter a unique «Mapper Name» and select the «Mapper Type».

Specify the Organizational Unit (OU) DN where your security groups are stored—this is the location Keycloak will use to retrieve groups for display in the admin interface.
