Re: [HACKERS] pgsql/php3/apache authentication

From: Jim Mercer <jim(at)reptiles(dot)org>
To: Jan Wieck <wieck(at)debis(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-general(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] pgsql/php3/apache authentication
Date: 2000-04-27 18:58:47
Message-ID: 20000427145846.Z24479@reptiles.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Thu, Apr 27, 2000 at 11:17:39AM +0200, Jan Wieck wrote:
> [Charset iso-8859-1 unsupported, filtering to ASCII...]
> > On Wed, 26 Apr 2000, Jim Mercer wrote:
> >
> > > - queries via localhost (unix domain sockets) should assume that the pg_user
> > > is the same as the unix user running the process.
> >
> > There's no way for the server to determine the system user name of the
> > other end of a domain socket; at least no one has implemented one yet. So
> > essentially this isn't going to work.

given that, i'm looking at changing things so that i use:

local all password
host all 127.0.0.1 255.255.255.255 ident sameuser

this will force all connections through the unix domain socket to need a
password.

it will allow unfettered access if the launching process is owned by
a valid pg_user.

is there a performance penalty associated with forcing the bulk of my
processing through the loopback, as opposed to the unix domain socket?

--
[ Jim Mercer jim(at)reptiles(dot)org +1 416 506-0654 ]
[ Reptilian Research -- Longer Life through Colder Blood ]
[ Don't be fooled by cheap Finnish imitations; BSD is the One True Code. ]

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message gme 2000-04-27 19:02:33 Row Size
Previous Message Marc Tardif 2000-04-27 18:54:24 advice on indexing email

Browse pgsql-hackers by date

  From Date Subject
Next Message Lincoln Yeoh 2000-04-28 01:12:13 Re: Re: [HACKERS] pgsql/php3/apache authentication
Previous Message Malcolm Beattie 2000-04-27 09:51:32 Re: [HACKERS] pgsql/php3/apache authentication