Re: Bug #890: only one user per process in libpq with krb5 auth

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: schallee(at)darkmist(dot)net, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #890: only one user per process in libpq with krb5 auth
Date: 2003-03-11 05:12:51
Message-ID: 200303110512.h2B5Cpn00303@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Is this ready to be applied. It looks fine to me. I want to remove the
part of the patch that keeps the old structure definitions at the top,
but other than that, it looks good. Is there something that needs
improving about it?

---------------------------------------------------------------------------

pgsql-bugs(at)postgresql(dot)org wrote:
> Ed Schaller (schallee(at)darkmist(dot)net) reports a bug with a severity of 2
> The lower the number the more severe it is.
>
> Short Description
> only one user per process in libpq with krb5 auth
>
> Long Description
> Most of the kerberos authentication information used to authenticate a connection to the server with libpq is stored in global variables. This has the result that only one user&passwd can be used per process.
>
> Although this doesn't seem like a big issue on the surface, it makes things like mod_perl/mod_php + mod_auth_kerb mostly useless unless you only have one user. It also can lead to some very odd bugs.
>
> I'm afraid I didn't follow this through like I should as this was origionally discussed on pgsql-intefaces last May. The patch from them still applies fine though.
>
> Sample Code
> The patch can be found at:
>
> http://www.darkmist.net/~schallee/tmp/pgsql-libpq-kerb.patch
>
> The authentication code in libpq is rather cludgy in general and this patch doesn't help the situation. If I get board I may try to rewrite it.
>
> No file was uploaded with this report
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tatsuo Ishii 2003-03-11 05:45:58 Re: [BUGS] Bug #908: Can not INSERT Cyrilic characters when use
Previous Message Dan Langille 2003-03-11 04:00:53 man pg-dump + triggers