Re: pg_shadow password - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: pg_shadow password
Date
Msg-id 200204270533.g3R5XCF27542@candle.pha.pa.us
Whole thread Raw
In response to pg_shadow password  (Eduardo Gargiulo <ejg-pgsql@ar.homelinux.org>)
List pgsql-sql
]Eduardo Gargiulo wrote:

Checking application/pgp-signature: FAILURE
-- Start of PGP signed section.
> Hi all, this is my first message to the list.
> 
> My question is how can i hide or encrypt the passwd field in pg_shadow?
> I remember some PASSWORD() function to do that in old versions of
> pgsql, but it didn't work on my db. (7.0.2)

Use CREATE/ALTER USER username WITH ENCRYPTED PASSWORD 'test';                            ^^^^^^^^^
or change the postgresql.conf variable:
password_encryption = true

and passwords will be stored encrypted without the ENCRYPTED keyword.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: Eduardo Gargiulo
Date:
Subject: pg_shadow password
Next
From: "Josh Berkus"
Date:
Subject: Re: Function won't complete