1ERROR [PGSQL] 28000: SSPI authentication failed for user "postgres" (Npgsql.PostgresException)
从错误信息可以发现,错误代码 28000 表示认证失败,而 SSPI(Security Support Provider Interface)是 Windows 用于认证的一种机制,这个错误是 PostgreSQL 数据库的身份验证失败错误,报错的一些可能原因:
Windows 用户不匹配
pg_hba.conf 配置问题
服务账户权限问题
我怀疑的是 Windows 用户不匹配导致的,因为我使用的自己的域账号登陆,而安装这套 VBR 的是另一个账号,因为没有授权,所以无法与 PostgreSQL 实例。
看了一下官方的解释:
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:
The Windows account that was used during the initial install.
The NT AUTHORITY\SYSTEM account (The account used by the Veeam services.)
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.