Skip to main content
matanaskovic
Staff
Staff
April 27, 2022

Troubleshooting Tip: FortiAuthenticator error: Cannot add user from LDAP server

  • April 27, 2022
  • 0 replies
  • 3124 views
Description

This article explains how to fix the FortiAuthenticator error: Cannot add user from LDAP server DC-boss because of this error: Failed to import user 'administrator' (rule: TAC-RULE), Mobile number is required if TFA method is SMS.

 

matanaskovic_0-1651004916754.png
Scope FortiAuthenticator. 
Solution

In the Remote User Sync Rules, 'SMS' as an OTP method has been selected. For using the SMS token code, the user’s mobile number attribute must be specified.

 

If the mobile number is in the wrong format or is missing, then users will not be imported from the LDAP server into FortiAuthenticator.

 

matanaskovic_1-1651004948910.png

 

Under the Remote User Sync Rules settings -> LDAP User Mapping Attributes, the mobile number attribute must be defined. For example:

 

Mobile number: mobile

 

matanaskovic_2-1651004991277.png

 

In Active Directory, user's mobile number attribute must be in this format '+ [international number] [mobile number]'. 

 

matanaskovic_3-1651005023053.png

 

It is necessary to run the Remote User Sync Rule manually, and this time, it is necessary to see that the username 'administrator' has been imported from the LDAP server with a mobile number for delivering the Token code.

 

remote_sync1.png

 

matanaskovic_4-1651005063004.png

 

It is possible to verify that in FortiAuthenticator GUI logs:

 

matanaskovic_5-1651005105027.png

 

 

It can be checked in the Debug Logs on FortiAuthenticator:
https://FAC_ip_address/debug/user_sync/

 

Related documents:

Remote user sync rules/remote-user-sync-rules

Technical Tip: FortiAuthenticator remote user sync rules

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.