pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jason k Larson <jlarson@harrison.org>
To: PgSQL-PHP <pgsql-php@postgresql.org>
Subject: Re: HTTP authentication
Date: Fri, 27 Apr 2001 12:46:13 -0600
Message-ID: <2961768953.20010427124613@harrison.org> (raw)

This is all good but needs to be dealing with the password as a
hash/digest not the real clear text password.  I would use SHA1
(SHA-160) or MD5.

Jason k Larson
Web Developer++


AL> The way i do it is have a separate table in the database that keeps track of
AL> users and passwords for the application.

AL> I use the WWW-Authenticate header to get $PHP_AUTH_USER and $PHP_AUTH_PW

AL> I run them through the table using a select query.  If I come back with a
AL> match, I set a variable, $auth, equal to true.

AL> If $auth is equal to true, they can perform whatever functions in the page I
AL> have.

AL> I don't have a log out button, but all I would probably do would be set
AL> $auth = false and unset the $PHP... variables.

AL> Adam Lang
AL> Systems Engineer
AL> Rutgers Casualty Insurance Company
AL> http://www.rutgersinsurance.com
AL> ----- Original Message -----
AL> From: "Christian Marschalek" <cm@chello.at>
AL> To: "'Adam Lang'" <aalang@rutgersinsurance.com>
AL> Cc: "[PHP] PostgreSQL" <pgsql-php@postgresql.org>
AL> Sent: Friday, April 27, 2001 11:43 AM
AL> Subject: RE: [PHP] HTTP authentication





view thread (14+ messages)  latest in thread

Message-ID: <2961768953.20010427124613@harrison.org>
Permalink:  ../2961768953.20010427124613@harrison.org/
Also on:    postgresql.org/message-id/2961768953.20010427124613@harrison.org

 · 

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: jlarson@harrison.org
  Subject: Re: HTTP authentication
  In-Reply-To: <2961768953.20010427124613@harrison.org>
  References: <2961768953.20010427124613@harrison.org>

* 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