krb_server_keyfile setting doesn't work on Windows

Inoue, Hiroshi <inoue@tpf.co.jp>

From: Hiroshi Inoue <inoue@tpf.co.jp>
To: PG Hackers <pgsql-hackers@postgresql.org>
Date: 2009-12-30T15:27:45Z
Lists: pgsql-hackers

Attachments

Hi,

As far as I tested, the krb_server_keyfile setting
in postgres.conf doesn't work on Windows.

Because gssapi32.dll(krb5_32.dll) seems to call
getenv("KRB5_KTNAME") in msvcr71, postgres.exe
should call putenv("KRB5_KTNAME=...") in msvcr71.
The attached patch fixes the problem in my test
case.

regards,
Hiroshi Inoue