Veeam Upgrade: PostgreSQL SSPI Authentication Failed

Summary: After upgrading Veeam Backup & Replication, the PostgreSQL service may fail authentication for the postgres user when using SSPI (Windows integrated authentication).

Symptoms: During upgrade or Veeam service startup, the following error appears in logs:

FATAL: SSPI authentication failed for user "postgres"

Root Cause: The local Windows account running the upgrade (often a local Administrator) isn’t mapped to the postgres database role. Veeam’s installer attempts SSPI authentication via the Windows user, which PostgreSQL rejects unless explicitly mapped.

Solution: Add a mapping for the local admin account to the postgres role in the PostgreSQL ident map configuration file.

Steps:

C:\Program Files\PostgreSQL\15\data\pg_ident.conf
# Map local Windows admin to postgres role
map_admin   YOUR-PC\Administrator   postgres
host    all    postgres    127.0.0.1/32    sspi    map=map_admin
net stop postgresql-x64-15
net start postgresql-x64-15

Verification: Run the following test to confirm:

psql -U postgres -h localhost

You should connect without SSPI authentication errors.

Notes:

References: