Skip to main content
jkoay
Staff & Editor
Staff & Editor
November 11, 2020

Technical Tip: Alternative method to obtain admin account’s SMS two factor authentication activation code

  • November 11, 2020
  • 0 replies
  • 2204 views

Description

 

A FortiGate with no valid SMS quota can cause login issues when SMS two factor authentication is accidentally enabled in the FortiGate’s admin account.

This article describes an alternative method to obtain admin account’s SMS two factor authentication activation code.

 

Scope

 

FortiGate.

Solution

 

  1. Access the FortiGate via console cable.

  2. In the CLI console, execute the following commands:

diag debug reset
diag debug disable
diag debug app forticldd 255
diag fortitoken debug enable
diag debug enable

 

  1. Login to FortiGate with an alternative super_admin account. Access to System -> Administrator, select admin account that was configured with SMS two factor authentication and select 'Send SMS Activation Code'.

  2. Similar output on the console with FortiToken activation code being sent out will be visible

 

 
  1. Activate the two-factor authentication via FortiToken Mobile Application with the activation code obtained from CLI console.

  2. To disable debugs:

 

diag debug disable

 

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.