From: Tom Lane <tgl@sss.pgh.pa.us>
To: Carlos Ortiz <ortizc2@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: MD5 Passwords and user administratio
Date: Sat, 08 Feb 2003 22:12:12 -0500
Message-ID: <15243.1044760332@sss.pgh.pa.us> (raw)
In-Reply-To: <20030208221953.62165.qmail@web80312.mail.yahoo.com>
References: <20030208221953.62165.qmail@web80312.mail.yahoo.com>
Carlos Ortiz <ortizc2@yahoo.com> writes:
> I am trying to figure out exactly how to set someone's password when
> using MD5 passwords in postgres.
ALTER USER joe WITH PASSWORD 'secret';
> What exactly is psotgres passing to the MD5 hash to make up that
> incredible unintelligible stream of characters that it stores in the
> password field of the pg_shadow table?
I think the salt is the username --- but you shouldn't write code that
depends on knowing that. None of the MD5 behavior is considered
user-visible.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, ortizc2@yahoo.com
Subject: Re: MD5 Passwords and user administratio
In-Reply-To: <15243.1044760332@sss.pgh.pa.us>
References: <20030208221953.62165.qmail@web80312.mail.yahoo.com> <15243.1044760332@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox