Bug #890: only one user per process in libpq with krb5 auth - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject Bug #890: only one user per process in libpq with krb5 auth
Date
Msg-id 20030204064839.0C042476581@postgresql.org
Whole thread Raw
Responses Re: Bug #890: only one user per process in libpq with krb5 auth
List pgsql-bugs
Ed Schaller (schallee@darkmist.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
globalvariables. 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
mostlyuseless 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.
Thepatch 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
Imay try to rewrite it. 

No file was uploaded with this report

pgsql-bugs by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Problem when adding an existing primary key
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #891: CAP letters