- 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 in zVirt
Overview
This article describes how to configure LDAP authentication in zVirt using MULTIDIRECTORY as the identity provider.
Requirements
- Installed MULTIDIRECTORY directory service.
- Deployed zVirt system.
Preparation
Create a service account in MULTIDIRECTORY with read access to the directory.
zVirt Configuration for MULTIDIRECTORY Integration
To configure LDAP authentication, open the zVirt web interface and follow these steps:
Go to «Keycloak Portal».

Go to «User Federation» and click «Add LDAP provider».

To connect to LDAP and configure the profile, specify «Console display name», «Provider», «Connection URL», «STARTTLS», «Use Truststore SPI», «Connection pooling», and «Connection timeout». Click «Test connection» to verify that the connection is successful.

Field Description
- Console display name — LDAP provider name shown in the Keycloak interface, for example MD.
- Provider — LDAP server type. For MULTIDIRECTORY select Active Directory.
- Connection URL — address and protocol used to connect to the LDAP server, can be IP or FQDN.
- STARTTLS — enables secure connection over port 389 using STARTTLS if supported by the LDAP server.
- Use Truststore SPI — defines the trusted certificate store source; Always uses the system certificate store for TLS verification.
- Connection pooling — enables reuse of LDAP connections.
- Connection timeout — maximum time in milliseconds to establish a connection, recommended 10000 (10 seconds).
Fill in «Authentication type», «DN mapping», and «Bind credentials», then click «Authentication test» to verify that the LDAP connection is successful.

Field Description
- Authentication type — authentication method used when connecting to the LDAP server. For MULTIDIRECTORY, use the value simple.
- DN mapping — the full Distinguished Name (DN) of the service account used by the platform to connect to the LDAP directory, for example: cn=admin,cn=Users,dc=your,dc=domain. The account must have read permissions for the directory.
- Bind credentials — the password of the service account specified in the DN mapping field.
Go to LDAP Search and Update and fill in the required parameters.

Field Description
- Edit mode — defines whether data can be modified via LDAP. For MULTIDIRECTORY integration, select READ_ONLY, since writing data to the directory is not required.
- Users DN — base path (Base DN) in the LDAP tree where user accounts are located, for example cn=Users,dc=md,dc=loc. This path is used to search for users for import.
- Username LDAP attribute — attribute whose value is used as the login name in the system. For MULTIDIRECTORY, specify sAMAccountName.
- RDN LDAP attribute — attribute used in the Relative Distinguished Name (RDN) to construct the entry DN. For MULTIDIRECTORY, specify sAMAccountName.
- UUID LDAP attribute — attribute containing the unique object identifier. For MULTIDIRECTORY, use the appropriate unique identifier attribute.
- User object classes — list of LDAP object classes that define an entry as a user.
- User LDAP filter — additional filter to restrict user search. It can be used to exclude service accounts. If not required, leave empty.
- Search scope — depth of LDAP search. Subtree searches all nested organizational units, while One Level searches only the specified level.
- Read timeout — maximum time in milliseconds to wait for an LDAP response during search operations. Recommended value is 5000–10000 ms.
- Pagination — enables paged results for LDAP search. For MULTIDIRECTORY, it should be disabled as it may not work correctly.
- Referral — defines behavior when LDAP referrals to other servers are encountered. For a single directory setup, keep the default value.
Go to the «Synchronization settings» section and configure it.

Field Description
- Import users — enables automatic import of users from LDAP into the Keycloak database upon first authentication. Recommended to enable.
- Sync registrations — determines whether user attribute changes (such as first name, last name, email) are synchronized on each authentication. Recommended to enable.
- LDAP users batch size — number of users synchronized per cycle. Leave the default value (1000).
- Periodic full sync — enables regular full synchronization of all LDAP users with the Keycloak database. For production environments, it is recommended to enable this option with an interval of 86400 seconds (once per day).
- Periodic user sync changes — enables synchronization of only modified objects using the uSNChanged attribute. For MULTIDIRECTORY, leave this disabled as this mechanism is not supported.
Go to the «Kerberos integration», «Cache settings», and «Advanced» sections and configure them. Additionally, you can request supported extensions. After filling in all the fields, click «Save».


Field Description
- Kerberos authentication — enables user authentication via the Kerberos protocol.
- Use Kerberos for password authentication — allows Kerberos to be used for password validation during standard authentication.
- Cache policy — defines the strategy for user data caching. The value DEFAULT uses Keycloak’s standard caching settings.
- LDAPv3 password modify extended operation — enables password changes via the LDAP server using the LDAPv3 extended operation. Keep this disabled.
- Password policy validation — enables validation of user passwords against the LDAP server password policy. Keep this disabled.
- Email verification — enables verification of user email addresses. Keep this disabled.
After that, the MULTIDIRECTORY directory will appear in the «User Federation» tab.

To display all available groups from MULTIDIRECTORY, you need to configure group mapping. Go to the «User Federation» menu and select the previously configured LDAP connection.

In the opened window, switch to the «Mappings» tab at the top of the screen and click «Add mapper».

In the mapping creation window, enter a «Client template name» (it must be unique) and select the «Mapper type». Specify the location of the organizational unit where the security groups are stored that need to be retrieved in the interface.

Go to «Groups» → «Domain users», click «Add member», select the user, and in «Role mappings» choose the «Realm management» group.

Go to «Users», and for the selected MULTIDIRECTORY user assign the «Realm-admin» role.

Authentication process in zVirt
Open the zVirt web interface → Keycloak.
Enter the MULTIDIRECTORY user credentials, for example test@your.domain.

After successful authentication, the service becomes available.
