Re: krb_server_keyfile setting doesn't work on Windows - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: krb_server_keyfile setting doesn't work on Windows
Date
Msg-id 9837222c0912300820k459526ddo5a1ec214c79f8334@mail.gmail.com
Whole thread Raw
In response to krb_server_keyfile setting doesn't work on Windows  (Hiroshi Inoue <inoue@tpf.co.jp>)
Responses Re: krb_server_keyfile setting doesn't work on Windows  (Hiroshi Inoue <inoue@tpf.co.jp>)
List pgsql-hackers
2009/12/30 Hiroshi Inoue <inoue@tpf.co.jp>:
> 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.

Isn't the main backend linked with msvcr71.dll anyway? Then the
regular putenv should put it in th eenv of  msvcr71.dll, and the stuff
that's wrapped through src/port/win32env.c will put it in the regular
msvcr file.

I wonder if you're possibly being hit with the bug I patched the other
day, but didn't backpatch.
(http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=f8bcd7220b1166f7c037ceaf0a53958cbc6a7630).

Can you see if that fix solves your problem as well? (Either directly
or by testing HEAD)

If not, the fix should still go in win32env.c, not directly in auth.c

-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Thoughts on statistics for continuously advancing columns
Next
From: Robert Haas
Date:
Subject: Re: Stats for inheritance trees