Re: Question on MD5 authentication

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wei Weng <wweng(at)kencast(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Question on MD5 authentication
Date: 2006-10-12 21:17:42
Message-ID: 19602.1160687862@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Wei Weng <wweng(at)kencast(dot)com> writes:
> (As you can see, all 3 strings are different)
> Why the difference? Is there something missing ??

Well, the password is actually supposed to be 'md5'||md5(passwd||user),
thus:

regression=# select md5('test_passwd' || 'test_user');
md5
----------------------------------
c573460a3b356e4610bfae406e1d8a9f
(1 row)

So either you are mistyping the password at the client end, or there's
something broken about the client-side code.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stuart Morse 2006-10-12 21:29:27 SQL syntax error handling within SPI functions in C
Previous Message Tomi NA 2006-10-12 21:09:53 Re: UTF-8