Skip to main content
H_DY
New Member
Dec 14, 2023 6:20 AM UTC
Question

[fortigate] Authentication attempt sequence when using a Multi remote authentication server?

 

Fortigate version 6.4.14

When setting up an administrator account through a remote authentication server.
Remote authentication server, LDAP, RADIUS, TACACS+, Local.

Is there a sequence for authentication attempts?
Or can I set the order of authentication attempts?

I wonder.
thank you

7 replies

ozkanaltas
Valued Contributor III
Dec 14, 2023 8:07 AM UTC

Hello @H_DY ,

 

In my opinion, the sequence is related to your group configuration. When you create a remote group you can select which is the first authentication method for your admin user. When the admin user tries to login, Fortigate will processes this request based on your group configuration.

 

 

Translate
H_DY
H_DYAuthor
New Member
Dec 14, 2023 8:37 AM UTC

@ozkanaltas 
Thanks for answering my question.


FW1 # config user group
FW1 (group) # edit "ldap_tacacs_radius"
FW1 (ldap_tacacs_radius) # show
config user group
edit "ldap_tacacs_radius"
set member "ldap_test" "TACACS-SERVER" "radius_user"
next
end

FW1 # config system admin
FW1 (admin) # edit "remote-auth"
FW1 (remote-auth) # show
config system admin
edit "remote-auth"
set remote-auth enable
set accprofile "super_admin"
set vdom "root"
set wildcard enable
set remote-group "ldap_tacacs_radius"
next
end

 

In the above settings, is the priority ldap > tacacs > radius?

 

Translate
H_DY
H_DYAuthor
New Member
Dec 14, 2023 8:36 AM UTC

q

Translate
ozkanaltas
Valued Contributor III
Dec 14, 2023 8:43 AM UTC

Hello @H_DY,

 

In my opinion, yes Fortigate processes your request with this sequence.  You can test this easily. 

 

Try to login with ldap first and than change your ldap configuration with the wrong information for example change the user password in your ldap configuration. After that, try to login again. If Fortigate process your login request with a tacacs, this indicates that it works this way.

 

Translate
H_DY
H_DYAuthor
New Member
Dec 14, 2023 8:47 AM UTC

Thank you for your reply.
I will test it as you suggested.
I will leave the test results.

Translate
Sheikh
Staff
Staff
Dec 14, 2023 10:47 AM UTC

Hello @H_DY, 

 

Just to add that incase of multiple LDAP servers (I mean separate LDAP entries in FortiGate), there might be some authentication issues. In this case FortiGate will send authentication request to all the LDAP servers for the same credentials. Generally it would work and the user will be authenticated, but if the credentials are not correct, then FortiGate will send wrong credentials twice or even more (depends upon how many LDAP servers entries are in the LDAP configs).

 

To avoid this issue, better to add "secondary and tertiary server" in the one single LDAP entry.


config user ldap
    edit "dc01"
        set server "X.X.X.X"
        set secondary-server "X.X.X.X" <-----------2nd ldap server

        set tertiary-server "X.X.X.X" <--------------3rd ldap server
        set cnid "sAMAccountName"
        set dn "dc=testt,dc=local"
        set type regular
        set username "administrator\\ldapadmin"
        set password <password>
    next
end

 

regards,

 

Sheikh

Translate
If you have found a solution, please like and mark it as solved to make it easily accessible for everyone.
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