Skip to main content
avp
Staff
Staff
Aug 25, 2025 7:09 AM UTC

Technical Tip: How to add Two-Factor Authentication for Administrative access for LDAP users

  • Jul 9, 2026 9:05 AM UTC
  • 0 replies
  • 1628 views
  • Translate All

Description

This article describes how to enable 2-Factor Authentication for Admin Users from LDAP through FortiToken MFA.

Scope

FortiGate.

Solution

Step 1: Create an LDAP user group.

Go to User & Authentication -> User Groups -> Create new.

 

Usergroup_LDAP.png

 

After giving a name to the user group, choose the type as firewall.  In the remote Groups, select Add and select the LDAP server and group that is supposed to get authenticated for the administrative access.
Here, the name given for the group is Admin.

 

Step 2: Create an Admin User.

Go to System -> Administrators -> Create new.

 

Admin_user.jpg

 

  1. Give the user name. This name should match the username available in the LDAP group. The type needs to be selected 'Match a user on a remote server group'. When using Match all users in a remote server group (wildcard), it is not possible to assign a specific FortiToken or 2FA method to each individual admin account, because the admin account is not tied to a specific username. adminad is the test username given here.

For more information about ‘Match all users in a remote server group’ and ‘Match a user on a remote server group’, follow this document: Remote authentication for administrators.

 

     2. Choose the Administrator profile required for this user. Administrator profiles explains how to configure Administrator Profiles. 

     3. Choose the User Group created in Step 1. Here, the group name is Admin.

     4. Enable Two-factor Authentication, select FortiToken, and then select the Token serial number that is needed to be used for this admin user.

     5. Give the email address that is needed to receive the activation code for the FortiToken activation. 

 

Step 3: Now that the configuration has been completed it is ready to test. 

askingTken.png

 

Once the correct username and password are given for the authentication, it asks for the FortiToken input to proceed further.

 

Step 4: Verification.

 

Successlog.png

 

date=2025-08-15 time=12:51:24 eventtime=1755242483912713966 tz="+0530" logid="0100032001" type="event" subtype="system" level="information" vd="root" logdesc="Admin login successful" sn="1755242483" user="adminad" ui="https(10.50.17.161)" method="https" srcip=10.50.17.161 dstip=10.5.135.146 action="login" status="success" reason="none" profile="super_admin_readonly" msg="Administrator adminad logged in successfully from https(10.50.17.161)"


Now the user adminad has been logged in to the device successfully and the correct Administrator profile has been assigned to the user.

 

Related article:

Technical Tip: Add Two-Factor Authentication for FortiGate Administrators using FortiToken

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024