From: Aaron Sethman <androsyn@ratbox.org>
To: Roderick A. Anderson <raanders@altoplanos.net>
Cc: Silesky Marketing Inc, Support <support@silesky.com>
Cc: pgsql <pgsql-sql@postgresql.org>
Cc: pggeneral <pgsql-general@postgresql.org>
Subject: Re: password encryption
Date: Mon, 24 Jul 2000 18:37:47 -0400 (EDT)
Message-ID: <Pine.LNX.4.21.0007241835530.25447-100000@squeaker.ratbox.org> (raw)
In-Reply-To: <Pine.LNX.4.04.10007211027480.14805-100000@asgard.altoplanos.net>
I think what he was looking for was more along the lines of a generic sql
function that hashes a string, and not to update the system tables.
I actually wrote a replacement for the mysql PASSWORD() function that is
actually compatible with the hashing that mysql uses. If you would like a
copy of this function just let me know so I can extract it out of the a
bunch of other functions.
Aaron
On Fri, 21 Jul 2000, Roderick A. Anderson wrote:
> On Fri, 21 Jul 2000, Silesky Marketing Inc, Support wrote:
>
> > Hello,
> >
> > I want to encrypt passwords with Postgresql the way mySQL does it with :
> >
> > UPDATE user SET Password=PASSWORD('new_password') WHERE user='root';
>
> Check out the ALTER command.
>
> ALTER USER username
> [ WITH PASSWORD 'password' ]
> [ CREATEDB | NOCREATEDB ] [ CREATEUSER | NOCREATEUSER ]
> [ VALID UNTIL 'abstime' ]
>
>
> Rod
> --
> Roderick A. Anderson
> raanders@altoplanos.net Altoplanos Information Systems, Inc.
> Voice: 208.765.6149 212 S. 11th Street, Suite 5
> FAX: 208.664.5299 Coeur d'Alene, ID 83814
>
>
>
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-sql@postgresql.org
Cc: androsyn@ratbox.org, raanders@altoplanos.net, support@silesky.com, pgsql-general@postgresql.org
Subject: Re: password encryption
In-Reply-To: <Pine.LNX.4.21.0007241835530.25447-100000@squeaker.ratbox.org>
References: <Pine.LNX.4.04.10007211027480.14805-100000@asgard.altoplanos.net> <Pine.LNX.4.21.0007241835530.25447-100000@squeaker.ratbox.org>
* 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