So having rebuilt PostgreSQL against that, I'm now in the situation where the server never even attempts to get a ticket as far as I can see, and psql just crashes with nothing more than a useless error in the event log:
So I'm going to have to break out the debugger, though I suspect this may require more effort than I have time for right now.
Yeah, this is almost certainly well beyond what I have the time to figure out. Happy to do any testing etc. that may be needed, but I think this needs someone familiar with the GSS API to take the lead.
Here's what I got from psql in the debugger:
Exception thrown at 0x0000000000000000 in psql.exe: 0xC0000005: Access violation executing location 0x0000000000000000. occurred
0000000000000000() krb5_64.dll!0000000051942807() krb5_64.dll!000000005194214b() krb5_64.dll!0000000051980611() krb5_64.dll!00000000519766cb() krb5_64.dll!00000000519670ff() gssapi64.dll!0000000051bb1839() gssapi64.dll!0000000051bb48e4() gssapi64.dll!0000000051bb4575() gssapi64.dll!0000000051b993df() libpq.dll!pqsecure_open_gss(pg_conn * conn) Line 632 at c:\users\dpage\downloads\postgresql\src\interfaces\libpq\fe-secure-gssapi.c(632) libpq.dll!PQconnectPoll(pg_conn * conn) Line 3173 at c:\users\dpage\downloads\postgresql\src\interfaces\libpq\fe-connect.c(3173) libpq.dll!connectDBComplete(pg_conn * conn) Line 2187 at c:\users\dpage\downloads\postgresql\src\interfaces\libpq\fe-connect.c(2187) libpq.dll!PQconnectdbParams(const char * const * keywords, const char * const * values, int expand_dbname) Line 655 at c:\users\dpage\downloads\postgresql\src\interfaces\libpq\fe-connect.c(655) psql.exe!main(int argc, char * * argv) Line 266 at c:\users\dpage\downloads\postgresql\src\bin\psql\startup.c(266) [External Code]