pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Daniel Struck <struck.d@retrovirology.lu>
Cc: Robert Treat <xzilla@users.sourceforge.net>
Cc: pgsql-php@postgresql.org
Subject: Re: client authentication towards postgresql in php?
Date: Thu, 13 Nov 2003 16:13:51 -0600
Message-ID: <20031113221351.GA23638@wolff.to> (raw)
In-Reply-To: <20031112112603.1eb5d786.struck.d@retrovirology.lu>
References: <20031109165228.45503144.struck.d@retrovirology.lu>
	<1068557456.10942.14684.camel@camel>
	<20031111145425.716dbf1a.struck.d@retrovirology.lu>
	<20031111184752.GA11772@wolff.to>
	<20031112112603.1eb5d786.struck.d@retrovirology.lu>

On Wed, Nov 12, 2003 at 11:26:03 +0100,
  Daniel Struck <struck.d@retrovirology.lu> wrote:
> On Tue, 11 Nov 2003 12:47:52 -0600
> Bruno Wolff III <bruno@wolff.to> wrote:
> 
> > If you trust the host the php/web server runs on you may be able to use
> > trust authentication. If you don't trust all of the users on that host
> > then you can use ident authentication, though if the db server and php/web
> > server aren't the same host using identd may slow things down too much.
> 
> The web application, which will make the connection to the database, is normally running under the user apache, so I don't think I could use the ident method?

Sure you can. If you trust the apache user, you can use ident authentication
to allow it to connect as any of the valid users. It may be in your case
that you can't trust the apache user, but we don't know enough about your
setup to be able to tell that.



view thread (9+ messages)

Message-ID: <20031113221351.GA23638@wolff.to>
Permalink:  ../20031113221351.GA23638@wolff.to/
Also on:    postgresql.org/message-id/20031113221351.GA23638@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: bruno@wolff.to, struck.d@retrovirology.lu, xzilla@users.sourceforge.net
  Subject: Re: client authentication towards postgresql in php?
  In-Reply-To: <20031113221351.GA23638@wolff.to>
  References: <20031109165228.45503144.struck.d@retrovirology.lu> <1068557456.10942.14684.camel@camel> <20031111145425.716dbf1a.struck.d@retrovirology.lu> <20031111184752.GA11772@wolff.to> <20031112112603.1eb5d786.struck.d@retrovirology.lu> <20031113221351.GA23638@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox