pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew McMillan <andrew@catalyst.net.nz>
To: Stephan Borg <wolff_borg@yahoo.com.au>
Cc: pgsql-php@postgresql.org
Subject: Re: WWW-Authentication and Postgresql
Date: 26 Dec 2001 15:52:06 +1300
Message-ID: <1009335127.28550.6.camel@kant.mcmillan.net.nz> (raw)
In-Reply-To: <000101c18d9b$40ea9fd0$1400a8c0@p1g>
References: <000101c18d9b$40ea9fd0$1400a8c0@p1g>

On Wed, 2001-12-26 at 12:24, Stephan Borg wrote:
> Hello there,
> 
> I'm hoping that someone has tried this already. I am currently trying to
> write code, that prompts the user with a www-authentication logon and
> proceeds to verify if the credentials are a valid Postgresql user (incl
> password) before proceeding.

We have code to do this in the office somewhere.  It isn't hard.  Follow
the PHP examples and try a connect to the database with the credentials
you have got from the auth.

I don't actually do this for any of my sites, however.  I find that
database user != system user in 99.9% of cases.  In addition I find that
the www-authentication method makes for a crude login process.

E-mail me off-list if you can't figure it out and I will dig out the
code for you.

Cheers,
					Andrew.
-- 
--------------------------------------------------------------------
Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/        PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7201    MOB: +64(21)635-694    OFFICE: +64(4)499-2267
       Are you enrolled at http://schoolreunions.co.nz/ yet?




view thread (8+ messages)  latest in thread

Message-ID: <1009335127.28550.6.camel@kant.mcmillan.net.nz>
Permalink:  ../1009335127.28550.6.camel@kant.mcmillan.net.nz/
Also on:    postgresql.org/message-id/1009335127.28550.6.camel@kant.mcmillan.net.nz

 · 

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: andrew@catalyst.net.nz, wolff_borg@yahoo.com.au
  Subject: Re: WWW-Authentication and Postgresql
  In-Reply-To: <1009335127.28550.6.camel@kant.mcmillan.net.nz>
  References: <000101c18d9b$40ea9fd0$1400a8c0@p1g> <1009335127.28550.6.camel@kant.mcmillan.net.nz>

* 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