Re: You're on SecurityFocus.com for the cleartext passwords. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: You're on SecurityFocus.com for the cleartext passwords.
Date
Msg-id 12100.957650230@sss.pgh.pa.us
Whole thread Raw
In response to Re: You're on SecurityFocus.com for the cleartext passwords.  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses So we're in agreement....  (Vince Vielhaber <vev@michvhf.com>)
Re: You're on SecurityFocus.com for the cleartext passwords.  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Another idea is to add code to 7.1 to convert non-md5 shadow password
> fields to md5 format.  Since we already have special handling to do
> pg_pwd, we could do it there.  Seems like a plan.  MD5 format is all
> hex digits of a specific length.  No way to get that confused with a
> real password.

Well, if you're willing to depend on that, then there's no need for the
WITH ENCRYPTED PASSWORD variant syntax: the existing syntax WITH
PASSWORD could do it all, just by checking to see if the supplied
password string looks like it's already been md5-ified.

The real trick would be to get this to happen during a COPY into
pg_shadow --- if we did that, then dumps generated by 7.0 pg_dumpall
would still work.  Perhaps a trigger on pg_shadow insert/update is
the right place to check and md5-ify the password?  (If that's in place
then neither CREATE nor ALTER USER would need to do anything special!)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Benjamin Adida
Date:
Subject: Re: You're on SecurityFocus.com for the cleartext passwords.
Next
From: Tom Lane
Date:
Subject: Re: You're on SecurityFocus.com for the cleartext passwords.