Reset secure storage
Adaxes stores all credentials and other sensitive data in a secure storage. In a multi-server environment, access to the secure storage can be provided to an Adaxes service instance by any other service instance from the same configuration set. If an Adaxes service instance fails to get access to the storage, it will become stuck in the Awaiting authorization state and will not start.
First, make sure all Adaxes services are up and running and there are no communication issues between them. If the authorization mechanism doesn't work and your Adaxes service still fails to obtain access, you can reset the secure storage.
Resetting the secure storage will erase all the credentials used by Adaxes. In a multi-server environment, the credentials will be erased for all Adaxes services in the configuration set.
To reset the secure storage, execute the below script on the computer where the Adaxes service is installed.
Only Adaxes service administrators have the rights to reset the secure storage.
[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")
# Prompt for credentials.
$credential = Get-Credential
# Bind to the Adaxes service.
$ns = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$nameSpace = $ns.OpenDSObject("Adaxes:", $credential.UserName,`
$credential.GetNetworkCredential().Password, 0)
# Reset the storage.
$nameSpace.Put("adm-ResetSecureStorage", $true)
$nameSpace.SetInfo()