- 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
Architecture of the Solution
Overview
This article describes the architecture of the MULTIDIRECTORY directory service.

| Описание | |
|---|---|
| 1 | Users and services that use Kerberos for authentication connect to port 88 to interact with Kerberos. |
| 2 | Users interact with the system through LDAP clients. These clients can be various applications or devices that use the LDAP protocol to access data and services. |
| 3 | System administrators use a web application to manage and configure the system via a web interface. |
| 4 | All components of the directory service are containerized using Docker. |
| 5 | Traefik is a reverse proxy that routes requests from users, administrators, and automated systems to the appropriate internal services. It provides load balancing, security, and routing management. |
| 6 | The Key Distribution Center (KDC), which manages authentication using the Kerberos protocol. |
| 7 | The MULTIDIRECTORY Admin API acts as a backend component responsible for handling requests from the administrative interface and automation systems. It provides all the necessary functionality for secure and efficient management of LDAP data through the admin interface. |
| 8 | This component is responsible for delivering the web interface, which allows administrators to manage the directory service, create users, configure access policies, and manage client accounts. |
| 9 | An administrative service for managing the Kerberos server. |
| 10 | The LDAP server implements the Lightweight Directory Access Protocol (LDAP) and stores and processes incoming user requests within the directory data. It is responsible for user identification, authentication, and authorization, determining access rights based on attributes and group membership.*
* The LDAP server consists of four services deployed as separate containers, providing higher performance and fault tolerance. In the diagram, it is represented as a single block. |
| 11 | DNS server for domain name resolution. |
| 12 | PostgreSQL is a database management system. The MULTIDIRECTORY database stores system configuration settings and directory service data, such as information about users, groups, organizational units, and other related entities, as well as other critical data. |

| Описание | |
|---|---|
| 1 | Users and services that use Kerberos for authentication connect to port 88 to interact with Kerberos. |
| 2 | Users interact with the system through LDAP clients. These clients can be various applications or devices that use the LDAP protocol to access data and services. |
| 3 | System administrators use a web application to manage and configure the system via a web interface. |
| 4 | All components of the directory service are containerized using Docker. |
| 5 | Traefik is a reverse proxy that routes requests from users, administrators, and automated systems to the appropriate internal services. It provides load balancing, security, and routing management. |
| 6 | The Key Distribution Center (KDC), which manages authentication using the Kerberos protocol. |
| 7 | The MULTIDIRECTORY Admin API acts as a backend component responsible for handling requests from the administrative interface and automation systems. It provides all the necessary functionality for secure and efficient management of LDAP data through the admin interface. |
| 8 | This component is responsible for delivering the web interface, which allows administrators to manage the directory service, create users, configure access policies, and manage client accounts. |
| 9 | An administrative service for managing the Kerberos server. |
| 10 | The LDAP server implements the Lightweight Directory Access Protocol (LDAP) and stores and processes incoming user requests within the directory data. It is responsible for user identification, authentication, and authorization, determining access rights based on attributes and group membership.* * The LDAP server consists of four services deployed as separate containers, providing higher performance and fault tolerance. In the diagram, it is represented as a single block. |
| 11 | DNS server for domain name resolution. |
| 12 | PostgreSQL Cluster is a database management system. The database stores system configuration settings and directory service data, such as information about users, groups, organizational units, and other important records.* * In this diagram, it is shown as a separate database connected to MultiDirectory as an external service. |
MULTIDIRECTORY uses the following repositories:
- MULTIDIRECTORY — LDAP and JSON web-API server.
- MULTIDIRECTORY Web Admin — web interface for API
Overview of MULTIDIRECTORY Enterprise Edition
Description of MULTIDIRECTORY Enterprise Edition Container
| Container name | Description |
| traefik | Container responsible for routing (HTTP/TCP/UDP) and TLS. |
| traefik_certs_dumper | Container that exports and prepares certificates from Traefik. |
| multidirectory_api | Container with the Web API. |
| multidirectory-ldap_server-* | LDAP server container(s) handling LDAP/LDAPS requests. |
| cldap_server | Container with a CLDAP server for domain/LDAP service discovery over UDP. |
| multidirectory-global_ldap_server-* | Global LDAP server (Global Catalog) container(s) for centralized search and replication. |
| MD-postgres | Container with the PostgreSQL database. |
| multidirectory_interface | Container with the web-based administration interface. |
| multidirectory_migrations | Container responsible for database migrations. |
| multidirectory_certs_check | Container responsible for certificate validation and generation. |
| md_maintence | Container running scheduled tasks. |
| kdc | Container with the Kerberos authentication server. |
| kadmind | Container with the Kerberos admin service and password management. |
| kadmin_api | Container with the Kerberos administration API. |
| pdns_auth | PowerDNS Authoritative container. |
| pdns_recursor | PowerDNS Recursor container. |
| pdnsdist | dnsdist container (DNS entry point on :53 TCP/UDP, load balancing and filtering). |
| kea_dhcp4 | DHCPv4 container (ISC Kea). |
| kea_ctrl_agent | Container with the API/Control Agent for DHCP management. |
| dragonfly | DragonflyDB container (caching and session storage). |
| shadow_api | Internal API not exposed externally. |
| event_handler | Container for collecting and initial processing of system events and logs. |
| event_sender | Container for sending events. |
| salt_master | Salt Master container (group policy server / configuration management). |
Description of MULTIDIRECTORY Enterprise Edition Port
| Service | Port used | Description |
| DNS | :53/tcp :53/udp | DNS client queries. |
| Web-interface / API | :80 :443 | Access to the web console and API via Traefik (HTTPS). |
| LDAP/LDAPS | :389 :389/udp :636 | LDAP (TCP), CLDAP (UDP 389), LDAPS (TCP 636). |
| Global Catalog | :3268 :3269 | Global LDAP Catalog (3268 without TLS, 3269 with TLS). |
| Kerberos | :88 :88/udp | Kerberos authentication (KDC). |
| Kpasswd | :464 | Kerberos password changes. |
| Kadmind | :749 | Kerberos administration. |
| Group policies Salt | :4505 :4506 | Communication between Salt Master and Salt Minion (configuration management). |
| Salt API | :8002 | HTTP API Salt Master. |
| DHCPv4 | :67/udp | Port for DHCP client requests. |
Overview MULTIDIRECTORY Community Edition
Description of MULTIDIRECTORY Community Edition Container
| Container name | Description |
| traefik | Container responsible for routing (HTTP/TCP/UDP) and TLS. |
| traefik_certs_dumper | Container that exports and prepares certificates from Traefik. |
| multidirectory_api | Container with the Web API. |
| multidirectory-ldap_server-* | LDAP server container(s) handling LDAP/LDAPS requests. |
| cldap_server | Container with a CLDAP server for domain/LDAP service discovery over UDP. |
| multidirectory-global_ldap_server-* | Global LDAP server (Global Catalog) container(s) for centralized search and replication. |
| MD-postgres | Container with the PostgreSQL database. |
| multidirectory_interface | Container with the web-based administration interface. |
| multidirectory_migrations | Container responsible for database migrations. |
| multidirectory_certs_check | Container responsible for certificate validation and generation. |
| md_maintence | Container running scheduled tasks. |
| kdc | Container with the Kerberos authentication server. |
| kadmind | Container with the Kerberos admin service and password management. |
| kadmin_api | Container with the Kerberos administration API. |
| pdns_auth | PowerDNS Authoritative container. |
| pdns_recursor | PowerDNS Recursor container. |
| pdnsdist | dnsdist container (DNS entry point on :53 TCP/UDP, load balancing and filtering). |
| kea_dhcp4 | DHCPv4 container (ISC Kea). |
| kea_ctrl_agent | Container with the API/Control Agent for DHCP management. |
| dragonfly | DragonflyDB container (caching and session storage). |
| shadow_api | Internal API not exposed externally. |
| event_handler | Container for collecting and initial processing of system events and logs. |
| event_sender | Container for sending events. |
Description of MULTIDIRECTORY Community Edition Port
| Service | Port used | Description |
| DNS | :53/tcp :53/udp | DNS client queries. |
| Web-interface / API | :80 :443 | Access to the web console and API via Traefik (HTTPS). |
| LDAP/LDAPS | :389 :389/udp :636 | LDAP (TCP), CLDAP (UDP 389), LDAPS (TCP 636). |
| Global Catalog | :3268 :3269 | Global LDAP Catalog (3268 without TLS, 3269 with TLS). |
| Kerberos | :88 :88/udp | Kerberos authentication (KDC), exposed via the ports of the kdc container. |
| Kpasswd | :464 | Kerberos password changes. |
| Kadmind | :749 | Kerberos administration. |
| DHCPv4 | :67/udp | Port for DHCP client requests. |