Search Postgresql Archives

Re: Validating User

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux