Description |
This article describes a possible case of why an LDAP user is not synchronizing to FortiToken Cloud. |
Scope |
FortiGate, FortiToken Cloud. |
Solution |
In the given scenario, the LDAP server is configured to have a filter for the AD Group 'FTC Users' to be synchronized to FortiToken Cloud for two-factor authentication:
config user ldap edit "WINSERVER-AD" set server "10.10.10.10" set cnid "sAMAccountName" set dn "ou=FortiGate,dc=winserver,dc=lab" set type regular set two-factor fortitoken-cloud set two-factor-filter "(&(objectCategory=Person)(sAMAccountName=*)(memberOf=cn=FTC Users,ou=FortiGate,dc=winserver,dc=lab))" set username "WINSERVER\\fgt.svc" set password [masked] next end
Users are automatically synchronized to the FortiToken Cloud portal, however, the synchronization process can be manually triggered by running the below command on the FortiGate:
execute fortitoken-cloud sync
To verify the list of users that are synchronized to FortiToken Cloud, run the given command:
diagnose fortitoken-cloud show users
If the expected users are not added to FortiToken Cloud, run the following commands to check the FortiGate connectivity to the FortiToken Cloud server:
diagnose fortitoken-cloud server diagnose fortitoken-cloud show service
If the FortiToken Cloud service status is verified connected and ready, run the below debug and trigger a manual sync:
diagnose fortitoken-cloud debug enable diagnose debug enable execute fortitoken-cloud sync
The debug output will show the sync status and the number of users that are successfully synchronized or failed to synchronize.
If there are LDAP users that are not getting synchronized, the 'fortitoken-cloud debug' will also show if the user was skipped during synchronization. From the given output below, the LDAP users were skipped due to missing or not valid email assignments.
Ensure that the user has a proper email address assigned on the AD server as this is where the FortiToken Cloud activation email will be sent. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.