Skip to content
Snippets Groups Projects
Commit bb6b1a38 authored by Tom Lane's avatar Tom Lane
Browse files

Document that chkpass ignores password characters after the eighth.

parent e6bae1c3
No related branches found
No related tags found
No related merge requests found
$PostgreSQL: pgsql/contrib/chkpass/README.chkpass,v 1.2 2003/11/29 19:51:19 pgsql Exp $ $PostgreSQL: pgsql/contrib/chkpass/README.chkpass,v 1.3 2005/09/23 15:05:04 tgl Exp $
Chkpass is a password type that is automatically checked and converted upon Chkpass is a password type that is automatically checked and converted upon
entry. It is stored encrypted. To compare, simply compare agains a clear entry. It is stored encrypted. To compare, simply compare agains a clear
...@@ -17,6 +17,10 @@ passwords without re-encrypting them. If you want the password (encrypted) ...@@ -17,6 +17,10 @@ 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 without the colon then use the raw() function. This allows you to use the
type with things like Apache's Auth_PostgreSQL module. type with things like Apache's Auth_PostgreSQL module.
The encryption uses the standard Unix function crypt(), and so it suffers
from all the usual limitations of that function; notably that only the
first eight characters of a password are considered.
D'Arcy J.M. Cain D'Arcy J.M. Cain
darcy@druid.net darcy@druid.net
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment