pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christophe Labouisse <labouiss@cybercable.fr>
To: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Re: [ADMIN] Apache authentication & PostgreSQL
Date: 19 Jun 1999 00:01:20 +0200
Message-ID: <m33dzpkw27.fsf@gabuzo.meunet> (raw)
References: <Pine.LNX.4.04.9906151428400.3031-100000@ns.region.utsr>

Fomichev Michael <fomichev@null.ru> writes:

> I want to give different access rights to the database for different
> users (for select, for update, etc.). I can't do this using a pseudo user
> to contact the database. In CGI script I can connect to the database with 
> another username/password then a pseudo user, but I don't know the 
> password of authenticated user. May be there is another way to do this ?

Do you really need to set up password on the database level? As Jan
told you since an authentification is made on the apache level you
know when your CGI is executed that the user entered the right
password so you can create on the database level the same users you
use in apache but with no passwd or with dummy passwords.


-- 
Christophe Labouisse : Cinéma, typographie, Unix
christophe.labouisse@dial.oleane.com http://www.multimania.com/gabuzo/
Le cinéma en Lumière : http://www.lumiere.org/



view thread (7+ messages)

Message-ID: <m33dzpkw27.fsf@gabuzo.meunet>
Permalink:  ../m33dzpkw27.fsf@gabuzo.meunet/
Also on:    postgresql.org/message-id/m33dzpkw27.fsf@gabuzo.meunet

 · 

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-sql@postgresql.org
  Cc: labouiss@cybercable.fr
  Subject: Re: [SQL] Re: [ADMIN] Apache authentication & PostgreSQL
  In-Reply-To: <m33dzpkw27.fsf@gabuzo.meunet>
  References: <Pine.LNX.4.04.9906151428400.3031-100000@ns.region.utsr> <m33dzpkw27.fsf@gabuzo.meunet>

* 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