Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id DB27563452B for ; Thu, 3 Dec 2009 15:12:41 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 06960-01-4 for ; Thu, 3 Dec 2009 19:12:05 +0000 (UTC) X-Greylist: delayed 00:30:08.088439 by SQLgrey-1.7.6 Received: from mail.fmed.uba.ar (mail.fmed.uba.ar [157.92.152.1]) by mail.postgresql.org (Postfix) with ESMTP id B114E6349DF for ; Thu, 3 Dec 2009 15:11:22 -0400 (AST) Received: from [157.92.152.105] (unknown [157.92.152.105]) by mail.fmed.uba.ar (Postfix) with ESMTP id 6520039C3C8 for ; Thu, 3 Dec 2009 15:40:01 -0200 (ARST) Message-ID: <4B17FDCE.6030200@fmed.uba.ar> Date: Thu, 03 Dec 2009 15:05:02 -0300 From: Gerardo Herzig User-Agent: Thunderbird 2.0.0.6 (X11/20070801) MIME-Version: 1.0 To: postgres list Subject: create user xxx with md5 string? Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200912/2 X-Sequence-Number: 33440 Hi all. Im triyng, with no success, to create a user, and set the password with a md5 string. I did this: comechingon:~ # echo -n 123 | md5sum 202cb962ac59075b964b07152d234b70 - Ok, so then test=# CREATE USER foobar ENCRYPTED PASSWORD 'md5202cb962ac59075b964b07152d234b70'; --I have to add 'md5' at the begging of the string CREATE ROLE test=# SELECT * from pg_shadow where usename='foobar'; usename | usesysid | usecreatedb | usesuper | usecatupd | passwd | valuntil | useconfig ---------+----------+-------------+----------+-----------+-------------------------------------+----------+----------- foobar | 3250592 | f | f | f | md5202cb962ac59075b964b07152d234b70 | | (1 row) test=# \c test foobar Password for user foobar: [123, off course] FATAL: password authentication failed for user "foobar" Previous connection kept test=# SHOW server_version; server_version ---------------- 8.3.6 Im wondering which my mystake is: Using md5sum? I do have 'md5' as validation mechanism in pg_hba.conf Any hints? Thanks! Gerardo