Re: [HACKERS] Krb5 & multiple DB connections - Mailing list pgsql-patches

From Tom Lane
Subject Re: [HACKERS] Krb5 & multiple DB connections
Date
Msg-id 3363.1139510397@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Krb5 & multiple DB connections  (Stephen Frost <sfrost@snowman.net>)
Responses Re: [HACKERS] Krb5 & multiple DB connections
List pgsql-patches
Stephen Frost <sfrost@snowman.net> writes:
> The specific problem which I and the original reporter ran into is this:

> KRB5CCACHE=/tmp/krb5cc_apache_aev0kF
> pg_connect() -- works fine
> pg_close() -- works fine
> rm /tmp/krb5cc_apache_aev0kF
> KRB5CCACHE=/tmp/krb5cc_apache_cVMRtA
> pg_connect() -- Doesn't work, Kerberos error is "no credentials cache"

And why exactly is the application trying to munge the cache like that?
(I assume there is some state change you're not bothering to mention,
or there would be no need for a new cache, no?)

It sure seems like somebody is solving the wrong problem, and doing it
with a sledgehammer...

            regards, tom lane

pgsql-patches by date:

Previous
From: Stephen Frost
Date:
Subject: Re: [HACKERS] Krb5 & multiple DB connections
Next
From: Stephen Frost
Date:
Subject: Re: [HACKERS] Krb5 & multiple DB connections