Re: Postgres 8.3.3, GSSAPI, and Windows XP

From: "Peter Koczan" <pjkoczan(at)gmail(dot)com>
To: "Stephen Frost" <sfrost(at)snowman(dot)net>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Postgres 8.3.3, GSSAPI, and Windows XP
Date: 2008-09-11 18:29:28
Message-ID: 4544e0330809111129y3e4f260eq7df3b4702effb407@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, Sep 10, 2008 at 6:50 PM, Stephen Frost <sfrost(at)snowman(dot)net> wrote:
> Peter,
>
> * Peter Koczan (pjkoczan(at)gmail(dot)com) wrote:
>> Gritty details:
>> PostgreSQL 8.3.3
>> Windows XP SP2 (32-bit)
>> Kerberos for Windows 3.2.2
>> Server is running on Red Hat Enterprise Linux 5.2, Kerberos 1.6.2
>
> When using GSSAPI and KfW, you need to set a couple of environment
> variables for libpq to pick up on which indicate it should use GSSAPI
> rather than SSPI (standard Windows Kerberos/AD stuff):
>
> PGGSSLIB = gssapi
>
> and you'll probably also want:
>
> PGKRBSRVNAME = postgres
>
> Just set those through your computer settings, probably system wide on
> the systems in question.
>
> Since it defaults to upper-case POSTGRES on Windows, but if you're
> running KfW, I'm guessing you're using just regular MIT/Kerberos and
> using 'postgres/hostname(dot)domain(at)REALM'.

That worked perfectly. Thanks.

Is there a way to specify gssapi as the default to use at build time,
so no environment variables would have to be set? It's fine if the
answer is no since setting one ENV variable isn't a huge deal, but
it'd be nice if it could "just work".

Peter

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Brad Nicholson 2008-09-11 20:02:56 Re: replica of database
Previous Message Devrim GÜNDÜZ 2008-09-11 18:28:06 Re: starting postgres on red hat