When installing updates, restoring configuration, or directly interacting with the database (e.g., using pgAdmin), the following error occurs:
SSPI authentication failed for user
When upgrading to Veeam ONE v13, the following error may occur:
28000: sspi authentication failed for user "postgres".
This error occurs when the account used to interact with the PostgreSQL instance is not authorized.
When PostgreSQL is deployed by the Veeam Backup & Replication or Veeam ONE installer, that PostgreSQL database engine is configured to use SSPI Authentication, allowing for authentication using Windows accounts. During the installer's configuration of the PostgreSQL instance, only two Windows accounts are automatically added for access:
If the SSPI authentication error occurred during an upgrade of the product, and PostgreSQL is already installed, the user account used to run the upgrade is likely not configured within the PostgreSQL settings for access.
C:\Program Files\PostgreSQL\15\data\pg_ident.conf
veeam User@Domain postgres*This is true if the PostgreSQL instance was created by the Veeam Backup & Replication or Veeam ONE installer. However, if the PGSQL Instance was user-created, the mapname and pg-username may differ.
If Veeam Backup & Replication or Veeam ONE was deployed using a local administrator account, and the hostname was changed after the software was installed, the entry for that local account within the pg_ident.conf file will be invalid.
Update the pg_ident.conf file with the new hostname for all local user accounts.
For example, if the hostname was changed from WIN-JQN7UPJGBHG to vbrsrvr after installation, and installation was performed with the local Administrator account:
Old Entry
veeam Administrator@WIN-JQN7UPJGBHG postgres
Updated Entry
veeam Administrator@vbrsrvr postgres
If none of the non-SYSTEM accounts presently listed in the pg_ident.conf file are available to you, review the following steps to add your user account for access to the PostgreSQL instance.
Security Considerations
For day-to-day tasks involving Veeam Backup & Replication and Veeam ONE, a user does not need direct access to the PostgreSQL instance. Therefore, from a security standpoint, it may be best to only add accounts to the pg_ident.conf file when necessary. (Consider assigning a single account as the account that will be used for performing product updates or Configuration Restores for Veeam Backup & Replication.)
These steps assume the SSPI error has recently occurred and is still in the latest log file.
LOG: no match in usermap "veeam" for user "postgres" authenticated as "pgadmin@VBR12" FATAL: SSPI authentication failed for user "postgres"
C:\Program Files\PostgreSQL\15\data\pg_ident.conf
veeam pgadmin@VBR12 postgres
The username value must be enclosed in double quotes if it contains a special character (e.g., an underscore) or a space, as seen with the default "SYSTEM@NT AUTHORITY" entry.
The separator between items on a row can be any white space (e.g., one space, three spaces, one tab).
If this KB article did not resolve your issue or you need further assistance with Veeam software, please create a Veeam Support Case.
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.
This form is only for KB Feedback/Suggestions, if you need help with the software open a support case