Re: Validating User - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Validating User
Date
Msg-id 20051229075651.GA46703@winnie.fuhr.org
Whole thread Raw
In response to Validating User  (ShepherdHill DB Subscriptions <db.subscriptions@shepherdhill.biz>)
List pgsql-general
On Thu, Dec 29, 2005 at 08:10:52AM +0100, ShepherdHill DB Subscriptions wrote:
> Please as a superuser how would I obtain an equivalent of this query:
>
> SELECT * FROM pg_shadow WHERE usename='userid' AND md5(passwd)='passwd'

SELECT *
FROM pg_shadow
WHERE usename = 'userid' AND passwd = 'md5' || md5('passwd' || usename);

> All I am after is to validate a user against pg_shadow table in version
> 8.0.4.

For what purpose?

--
Michael Fuhr

pgsql-general by date:

Previous
From: "Gregory S. Williamson"
Date:
Subject: Re: Detaching database
Next
From: Vilen Tambovtsev
Date:
Subject: Re: DB crash after disk full