Re: Verifying a user.

From: Steven Klassen <sklassen(at)commandprompt(dot)com>
To: Thomas Hallgren <thhal(at)mailblocks(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Verifying a user.
Date: 2004-10-14 17:19:24
Message-ID: 20041014171924.GB20464@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

* Steven Klassen <sklassen(at)commandprompt(dot)com> [2004-10-14 10:07:39 -0700]:

> CREATE FUNCTION check_passwd(text,text) RETURNS boolean AS 'SELECT
> CASE WHEN passwd = md5($2) THEN true ELSE false END FROM pg_shadow
> WHERE usename = $1;' LANGUAGE sql;

Strike that - go with what Michael recommended. I glanced at the
password and didn't realize it was brewed with more than just the
password string.

--
Steven Klassen - Lead Programmer
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Replication & Support Services, (503) 667-4564

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2004-10-14 17:20:33 Re: Need some advice on appropriate PL strategy... ["solved/thanks"]
Previous Message Steven Klassen 2004-10-14 17:07:39 Re: Verifying a user.