Description
This article describes how to create an LDAP system administrator in FortiManager and FortiAnalyzer.
Scope
FortiAnalyzer.
Solution
To configure the FortiManager/FortiAnalyzer for LDAP authentication from the GUI:
- Go to System Settings -> Admin -> Remote Authentication Server, select 'Create New' and select 'LDAP Server'.
- Enter a Name for the LDAP server.
- In Server Name/IP, enter the Server Name or IP address.
- Enter the Port number used for LDAP communication (389 by default).
- Enter the Common Name Identifier (cn by default).
- Enter the Distinguished name. The selected query distinguished name icon will query the LDAP server for the name and open the LDAP Distinguished name query window to display the results (select the query after entering the User DN and Password in step 8 ) and 9)).
- In 'Bind Type', select 'Regular'.
- In User DN, enter the LDAP administrator’s name with the domain (for example: mydomain\admin).
- Enter the LDAP administrator’s password.
- Select 'OK'.


- Go to System Settings -> Admin -> Administrator and select 'Create New'.
- Enter the user name (the same with domain username if 'Match all users on remote server' is not checked).
- In 'Admin Type', select 'LDAP'.
- In the LDAP server, choose the remote authentication server created earlier.
- Check 'Match all users on remote server' to match a user group on the AD server.
- Left the password field empty.
- Select 'Admin Profile' and 'Administrative Domain' accordingly
- Select 'OK'.
- Log in now with the AD username and password.
To push an admin user profile from LDAP, use the following CLI command:
config system admin ldap
edit "myLDAP"
set profile-attr "description"
next
end
It is also necessary to configure the wildcard user to use this profile.
config system admin user
edit "myLDAPuser"
set ext-auth-accprofile-override enable
next
end
After editing the advanced attribute on the LDAP server and in the description field, mention the profile name associated with the user or group of users.
Note:
The following commands are useful for debugging while accessing the FortiManager using the newly created administrator:
diagnose debug en
diagnose debug application auth 255
Log in to the FortiManager, and disable the debug:
diagnose debug disable