Created on 01-15-2024 12:32 AM Edited on 01-23-2024 04:23 AM By Jean-Philippe_P
Description | This article describes how to back up and restore FortiAuthenticator via Rest API. |
Scope | FortitAuthenticator. |
Solution |
To enable the Rest API, review the KB article Technical Tip: Enable FortiAuthenticator Rest API or the guide Initializing-the-rest-api.
If the password is wrong (password=API Web Service Access Key) FortiAuthenticator rejects the user and there is no error shown in the logs. Keep in mind that curl here also will not return an error if the server returns an authentication error. This is a measure to make brute-force attacks harder.
> curl -k -X GET https://<Fortiauthenticator_IP>/api/v1/recovery/ -H 'Content-Type:application/json' -u "admin:zbBHrtKdCYRVccoZ" --output backupdb.conf > echo $?
The 'echo' output shows the previous commands' error code. 0 means there was no error returned from the command, despite this staged attempt having an incorrect password.
|
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 2024 Fortinet, Inc. All Rights Reserved.