pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Struck <struck.d@retrovirology.lu>
To: Robert Treat <xzilla@users.sourceforge.net>
Cc: pgsql-php@postgresql.org
Subject: Re: client authentication towards postgresql in php?
Date: Tue, 11 Nov 2003 14:54:25 +0100
Message-ID: <20031111145425.716dbf1a.struck.d@retrovirology.lu> (raw)
In-Reply-To: <1068557456.10942.14684.camel@camel>
References: <20031109165228.45503144.struck.d@retrovirology.lu>
	<1068557456.10942.14684.camel@camel>

> If your actually creating a user inside the database for each user,
> authentication is handled inside the database and passwords are held
> inside the database.  When your php login script fires off, save the
> user name/ password into a session and then use that info to build your
> pg_connect strings. 

The problem is, I don't have a password available in php.
The users are authenticated with x509 certificats and a private key, not a password. The private key is stored on a smartcard and never leaves it, the smartcard itself handles the authentication with apache.

Problem now is, I want to authenticate the user with postgresql, to be able to log what the user is doing in postgresql itself.
But I don't have a password to authenticate the user.
Thought about using a Kerberos ticket in postgresql, but don't know how to setup this.


Daniel

-- 
Retrovirology Laboratory Luxembourg
Centre Hospitalier de Luxembourg
4, rue E. Barblé
L-1210 Luxembourg

phone: +352-44116105
fax:   +352-44116113
web: http://www.retrovirology.lu
e-mail: struck.d@retrovirology.lu



view thread (9+ messages)  latest in thread

Message-ID: <20031111145425.716dbf1a.struck.d@retrovirology.lu>
Permalink:  ../20031111145425.716dbf1a.struck.d@retrovirology.lu/
Also on:    postgresql.org/message-id/20031111145425.716dbf1a.struck.d@retrovirology.lu

 · 

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: struck.d@retrovirology.lu, xzilla@users.sourceforge.net
  Subject: Re: client authentication towards postgresql in php?
  In-Reply-To: <20031111145425.716dbf1a.struck.d@retrovirology.lu>
  References: <20031109165228.45503144.struck.d@retrovirology.lu> <1068557456.10942.14684.camel@camel> <20031111145425.716dbf1a.struck.d@retrovirology.lu>

* 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