|
Home > Archive > PostgreSQL Discussion > December 2005 > Validating User
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| ShepherdHill DB Subscriptions 2005-12-29, 3:24 am |
| Hi,
Please as a superuser how would I obtain an equivalent of this query:
SELECT * FROM pg_shadow WHERE usename='userid' AND md5(passwd)='passwd'
I browse the content of the pg_shadow and the passwd field shows
something like md5...
All I am after is to validate a user against pg_shadow table in version
8.0.4.
Cheers.
Olu
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
| |
| Michael Fuhr 2005-12-29, 3:24 am |
| 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
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
|
|
|
|
|