Re: Validating User

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: ShepherdHill DB Subscriptions <db(dot)subscriptions(at)shepherdhill(dot)biz>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Validating User
Date: 2005-12-29 07:56:52
Message-ID: 20051229075651.GA46703@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

  • Validating User at 2005-12-29 07:10:52 from ShepherdHill DB Subscriptions

Browse pgsql-general by date

  From Date Subject
Next Message Vilen Tambovtsev 2005-12-29 08:41:59 Re: DB crash after disk full
Previous Message Dmitry Panov 2005-12-29 07:47:54 Re: [GENERAL] WAL logs multiplexing?