Re: MD5 Passwords and user administratio

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Carlos Ortiz <ortizc2(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: MD5 Passwords and user administratio
Date: 2003-02-09 03:12:12
Message-ID: 15243.1044760332@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Carlos Ortiz <ortizc2(at)yahoo(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Carlos Ortiz 2003-02-09 17:16:38 Re: MD5 Passwords and user administratio
Previous Message Nick Kelly 2003-02-08 23:04:49 configure: error: no acceptable C compiler found in $PATH