From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Vince Vielhaber <vev(at)michvhf(dot)com>, The Hermit Hacker <scrappy(at)hub(dot)org>, "Sverre H(dot) Huseby" <sverrehu(at)online(dot)no>, pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: You're on SecurityFocus.com for the cleartext passwords. |
Date: | 2000-05-07 03:10:47 |
Message-ID: | 200005070310.XAA27819@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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.
Yes, I would like that. Our syntax for CREATE USER is already pretty
large. Why not do it automatically?
> 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!)
We already have a trigger for pg_shadow updates to recreate pg_pwd.
Not sure if that happens from COPY however. I sure hope it does.
--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2000-05-07 03:11:35 | Re: You're on SecurityFocus.com for the cleartext passwords. |
Previous Message | Vince Vielhaber | 2000-05-07 03:06:42 | So we're in agreement.... |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2000-05-07 03:11:35 | Re: You're on SecurityFocus.com for the cleartext passwords. |
Previous Message | Vince Vielhaber | 2000-05-07 03:06:42 | So we're in agreement.... |