Skip to main content
jclar
Staff
Staff
July 21, 2024

Technical Tip: Authentication timeout setting on global user authentication setting vs per user group

  • July 21, 2024
  • 0 replies
  • 4025 views
Description

This article describes which takes precedence whenever authentication timeout is set on each user group vs on the global setting.

Scope FortiGate.
Solution

There are two ways to set the authentication for users when logging in. By default, in the global user setting under User&Authentication -> Authentication settings, auth-time out is set to 5 minutes.

 

GUI:

 

Global user authentication settings.png

 

CLI:

 

GUI Global user auth settings.png

 

When using the command diag firewall auth list, the details for the user’s authentication are provided. The command reflects the 'Firewall users 'dashboard, but provides more details on the CLI. If a filter for a certain user or IP is needed, use grep. For example, diag firewall auth list | grep -A 7 -i <user or IP>.
In the sample below, expired and allow-idle was 300 (in seconds) which matches the default authentication timeout which is 5 mins. 

 

 diag_global.png

 

On the other hand, it is also possible to set the authentication timeout per user group. The default authtimeout setting for each user group is 0. This means that it follows the timeout set on the global user authentication setting shown above.

 

Default setting: 

 

User_group.png

 

In this scenario, a separate user group was created with authtimeout set to 1 minute.

 

Authtimeout_1.png

 

The auth list now shows that the expiration and allow-idle time have changed following the setting of the auth timeout on the user group.

 

diagauth_user.png

 

Related articles:

Technical Tip: A guide to FortiGate Authentication 

Technical Tip: Explanation of auth-timeout types for Firewall authentication users 

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT