From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Robert Treat <xzilla(at)users(dot)sourceforge(dot)net> |
Cc: | Dan Langille <dan(at)langille(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: What goes into the security doc? |
Date: | 2003-01-26 02:15:53 |
Message-ID: | 200301260215.h0Q2Fsi24213@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-hackers |
Robert Treat wrote:
> I'm not sure how adequately these topics are covered elsewhere, but you
> should probably provide at least a pointer if not improved information:
>
> * Should have a mention of the pgcrypto code in contrib.
>
> * Brain hiccup, but isn't there some type of "password" datatype
It is in /contrib as chkpass:
Chkpass is a password type that is automatically checked and converted upon
entry. It is stored encrypted. To compare, simply compare agains a clear
text password and the comparison function will encrypt it before comparing.
It also returns an error if the code determines that the password is easily
crackable. This is currently a stub that does nothing.
I haven't worried about making this type indexable. I doubt that anyone
would ever need to sort a file in order of encrypted password.
If you precede the string with a colon, the encryption and checking are
skipped so that you can enter existing passwords into the field.
On output, a colon is prepended. This makes it possible to dump and reload
passwords without re-encrypting them. If you want the password (encrypted)
without the colon then use the raw() function. This allows you to use the
type with things like Apache's Auth_PostgreSQL module.
D'Arcy J.M. Cain
darcy(at)druid(dot)net
The document is a good idea, and the initdb -W item is good too!
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Lockhart | 2003-01-28 03:23:36 | Re: CVSROOT doc PostgreSQL |
Previous Message | Andrew Dunstan | 2003-01-24 15:36:43 | Re: What goes into the security doc? |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-01-26 02:16:51 | Re: default to WITHOUT OIDS? Possible related problem |
Previous Message | Bruce Momjian | 2003-01-26 02:06:22 | Re: Can we revisit the thought of PostgreSQL 7.2.4? |