From: | Lutz Broedel <lb(at)fggm(dot)uni-hannover(dot)de> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | role passwords and md5() |
Date: | 2007-04-12 10:20:14 |
Message-ID: | 461E07DE.6070203@fggm.uni-hannover.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Dear list,
I am trying to verify the password given by a user against the system
catalog. Since I need the password hash later on, I can not just use the
authentication mechanism for verification, but need to do this in SQL
statements.
Unfortunately, even if I set passwords to use MD5 encryption in
pg_hba.conf, the SQL function MD5() returns a different hash.
A (shortened) example:
CREATE ROLE my_user WITH ENCRYPTED PASSWORD 'my_password';
SELECT * FROM pg_authid
WHERE rolname='my_user' AND rolpassword=MD5('my_password');
Any ideas, what to do to make this work?
Best regards,
Lutz Broedel
--
To verify the digital signature, you need to load the following certificate:
https://pki.pca.dfn.de/uh-ca/pub/cacert/rootcert.crt
From | Date | Subject | |
---|---|---|---|
Next Message | Sorin N. Ciolofan | 2007-04-12 12:15:45 | Re: Increasing the shared memory |
Previous Message | Jan Mura | 2007-04-12 09:54:50 | Oracle mailing lists |