Skip site navigation (1) Skip section navigation (2)

Re: krb_server_keyfile setting doesn't work on Windows

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: krb_server_keyfile setting doesn't work on Windows
Date: 2009-12-30 16:20:08
Message-ID: (view raw or whole thread)
Lists: pgsql-hackers
2009/12/30 Hiroshi Inoue <inoue(at)tpf(dot)co(dot)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.

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 Hagander

In response to


pgsql-hackers by date

Next:From: Robert HaasDate: 2009-12-30 16:20:31
Subject: Re: Stats for inheritance trees
Previous:From: Tom LaneDate: 2009-12-30 16:16:45
Subject: Re: Thoughts on statistics for continuously advancing columns

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group