Re: create user xxx with md5 string? - Mailing list pgsql-sql

From Dmitriy Igrishin
Subject Re: create user xxx with md5 string?
Date
Msg-id b4399d110912031138h5d2c840coef90239b87f93214@mail.gmail.com
Whole thread Raw
In response to Re: create user xxx with md5 string?  (Dmitriy Igrishin <dmitigr@gmail.com>)
List pgsql-sql
Sorry for my prev post. I mean md5(password || username).
'test10' is a username on which i checked. :) Sorry!

2009/12/3 Dmitriy Igrishin <dmitigr@gmail.com>
Hello all.
Tom right. Encrypted MD5 passwords computed as md5(password || test10). I checked.

Regards, Dmitriy Igrishin. 

2009/12/3 Tom Lane <tgl@sss.pgh.pa.us>

Gerardo Herzig <gherzig@fmed.uba.ar> writes:
> Hi all. Im triyng, with no success, to create a user, and set the
> password with a md5 string.

The correct method for computing the md5'd password includes the
username.  I think it's 'md5' || md5sum(password || username)
but look at the code or docs.

                       regards, tom lane

--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql


pgsql-sql by date:

Previous
From: Dmitriy Igrishin
Date:
Subject: Re: create user xxx with md5 string?
Next
From: Gerardo Herzig
Date:
Subject: Re: create user xxx with md5 string?