Fix Kerberos authentication in wake of virtual-hosts changes --- need
Tom Lane <tgl@sss.pgh.pa.us>
Fix Kerberos authentication in wake of virtual-hosts changes --- need to call krb5_sname_to_principal() always. Also, use krb_srvname rather than the hardwired string 'postgres' as the appl_version string in the krb5_sendauth/recvauth calls, to avoid breaking compatibility with PG 8.0. Magnus Hagander
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/libpq/auth.c | modified | +27 −20 |
| src/backend/utils/misc/postgresql.conf.sample | modified | +1 −1 |
| src/interfaces/libpq/fe-auth.c | modified | +2 −2 |