Re: Postgres: pg_hba.conf, md5, pg_shadow, encrypted passwords - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Postgres: pg_hba.conf, md5, pg_shadow, encrypted passwords
Date
Msg-id 4267EFA9.50604@dunslane.net
Whole thread Raw
In response to Re: Postgres: pg_hba.conf, md5, pg_shadow, encrypted passwords  (Stephen Frost <sfrost@snowman.net>)
Responses Re: Postgres: pg_hba.conf, md5, pg_shadow, encrypted passwords
List pgsql-hackers

Stephen Frost wrote:

>* Tom Lane (tgl@sss.pgh.pa.us) wrote:
>  
>
>>Stephen Frost <sfrost@snowman.net> writes:
>>    
>>
>>>I'd also like to point out that this is *only* an issue for the 'md5'
>>>authentication mechanism in pg_hba.conf, which I think should be=20
>>>discouraged in favor of 'password' and SSL/IPSEC.
>>>      
>>>
>>This is still utter nonsense.  How can md5 be less secure than storing
>>your password in the clear?
>>    
>>
>
>I think you're mixing the issues.  'password' in pg_hba.conf does not
>automatically imply 'without encrypted password'/plaintext in pg_shadow.
>There are two seperate uses of md5 here and they counter each other.
>
>  
>

The docs say: "only md5 supports encrypted passwords stored in 
pg_shadow; the other two require unencrypted passwords to be stored 
there."  So either your assertion that 'password' auth does not imply 
plaintext password storage is wrong, or the docs are.

cheers

andrew


pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Postgres: pg_hba.conf, md5, pg_shadow, encrypted passwords
Next
From: Greg Stark
Date:
Subject: Re: Postgres: pg_hba.conf, md5, pg_shadow, encrypted passwords