Created on
12-31-2024
02:33 AM
Edited on
02-26-2025
05:09 AM
By
Jean-Philippe_P
Description | This article describes how to reset admin credentials after locking the account using SQL queries. |
Scope | FortiSIEM v7.1.x, v7.2.1. |
Solution |
This script will help to add a new test user when the existing add-super-admin.sql script does not add a new test user.
Step 1. Log into FortiSIEM through SSH using admin user access.
vim /opt/phoenix/deployment/add-super-test-admin.sql
Step 2. Enter below SQL queries below in the file and save the file.
INSERT INTO ph_user VALUES (nextval ('ph_global_gen'), 1283889301935, 1, 0, 1283889301935, 0, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'test', 'test', true, NULL, (select id from ph_rbac_profile where name='Full Admin'));
Step 3. Run below command:
psql -d phoenixdb -U phoenix -f /opt/phoenix/deployment/add-super-test-admin.sql
This will reset admin credentials and the script will work. Now, try to log in using the below credentials.
Username:- test Password:- Test*123
Admin password can be reset from GUI. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.