- 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
Two-Factor Authentication Setup Guide for FortiGate Using MULTIFACTOR RADIUS Adapter
Overview
This article describes how to configure FortiGate to use two-factor authentication (2FA) via the MULTIFACTOR RADIUS Adapter, with MULTIDIRECTORY as the identity provider.
Prerequisites
- Installed MULTIDIRECTORY directory service
- Pre-installed and configured MULTIFACTOR Radius Adapter
Creating a Service Account in MULTIDIRECTORY
To establish integration between MULTIDIRECTORY and the MULTIFACTOR RADIUS Adapter, create a dedicated service account in MULTIDIRECTORY with read-only access to user objects:

Note!
For the integration between MULTIDIRECTORY and MULTIFACTOR RADIUS Adapter to work correctly, the display Name attribute must be present for each user.
This attribute is populated automatically in MULTIDIRECTORY when both the «First Name» and «Last Name» fields are filled during user creation.

Configuring MULTIFACTOR RADIUS Adapter
For detailed installation and configuration instructions, refer to the official documentation on the MULTIFACTOR company website.
Below is an example of the configuration file: /opt/multifactor/radius/multifactor-radius-adapter.dll.config.
<!-- The address and port (UDP) on which the adapter will receive authentication requests from clients --> <add key="adapter-server-endpoint" value="0.0.0.0:1812"/> <!-- MULTIFACTOR API address --> <add key="multifactor-api-url" value="https://api.multifactor.ru"/> <!-- Access to the MULTIFACTOR API via HTTP proxy (optional) --> <!-- <add key="multifactor-api-proxy" value="http://login:password@proxy:3128"/> --> <!-- Logging level: 'Debug', 'Info', 'Warn', 'Error' --> <add key="logging-level" value="Debug"/>
Example Configuration File /opt/multifactor/radius/clients/<client_name>.config.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="RadiusReply" type="MultiFactor.Radius.Adapter.RadiusReplyAttributesSection, multifactor-radius-adapter" />
</configSections>
<appSettings>
<!-- Fortigate ip -->
<add key="radius-client-ip" value="ip"/>
<!-- shared secret between this service and fortigate -->
<add key="radius-shared-secret" value="123"/>
<!--<add key="radius-client-nas-identifier" value="windows"/> -->
<!--One of: ActiveDirectory, ADLDS, Radius, None-->
<add key="first-factor-authentication-source" value="ActiveDirectory"/>
<!--ActiveDirectory authentication settings: for example domain.local on host 10.0.0.4 -->
<add key="active-directory-domain" value="ldap://your_domain.ru/DC=your_domain,DC=ru"/>
<add key="service-account-user" value="user@your_domain.ru"/>
<add key="service-account-password" value="your_password"/>
<!--ActiveDirectory access group (optional);-->
<!--add key="active-directory-group" value="VPN Users"/-->
<!--ActiveDirectory 2FA group (optional);-->
<!--add key="active-directory-2fa-group" value="2FA Users"/-->
<!-- get it from multifactor management panel -->
<add key="multifactor-nas-identifier" value="your nas-identifier"/>
<!-- get it from multifactor management panel -->
<add key="multifactor-shared-secret" value="your shared-secret"/>
</appSettings>
<!--RadiusReply>
<Attributes>
<add name="Fortinet-Group-Name" from="memberOf"/>
</Attributes>
</RadiusReply-->
</configuration>
Configuring FortiGate
To establish a connection between FortiGate and the MULTIFACTOR RADIUS Adapter: log in to the FortiGate web interface. Navigate to User & Devices → RADIUS Server. Click Create New.
A screenshot would typically appear here in documentation, showing the «Create New» button location.

After creating a new RADIUS server in the FortiGate interface, a configuration window will open. Fill in the following fields:
- Name — Enter a descriptive name for the RADIUS server.
- Authentication method — Select «Specify», then choose «PAP» (Password Authentication Protocol).
- IP/Name — Specify the IP address or hostname of the server where the MULTIFACTOR RADIUS Adapter is installed.
- Secret — Enter the shared secret that was configured earlier in the RadiusSharedSecret field of the RADIUS adapter’s config file

To manage users who will use RADIUS authentication, create a dedicated user group in FortiGate:
- Go to User & Device → User Groups.
- Click Create New.
- In the configuration window: enter a name for the group and select the RADIUS server you created earlier.
