From 38bb1abcda9119957e836f731a1cfea6d2079499 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 15 Aug 2001 18:42:16 +0000 Subject: Use MD5 for wire protocol encryption for >= 7.2 client/server. Allow pg_shadow to be MD5 encrypted. Add ENCRYPTED/UNENCRYPTED option to CREATE/ALTER user. Add password_encryption postgresql.conf option. Update wire protocol version to 2.1. --- doc/src/sgml/client-auth.sgml | 9 ++++----- doc/src/sgml/protocol.sgml | 4 ++-- doc/src/sgml/ref/alter_user.sgml | 9 ++++++--- doc/src/sgml/ref/create_user.sgml | 13 ++++++++++--- doc/src/sgml/runtime.sgml | 26 +++++++++++++------------- 5 files changed, 35 insertions(+), 26 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/client-auth.sgml b/doc/src/sgml/client-auth.sgml index 6e7a1d834de..a7c9c8616b3 100644 --- a/doc/src/sgml/client-auth.sgml +++ b/doc/src/sgml/client-auth.sgml @@ -1,4 +1,4 @@ - + Client Authentication @@ -205,11 +205,10 @@ hostssl database IP-address Like the password method, but the password is sent over the wire encrypted using a simple - challenge-response protocol. This is still not - cryptographically secure but it protects against incidental + challenge-response protocol. This protects against incidental wire-sniffing. The name of a file may follow the - crypt keyword that contains a list of users - that this record pertains to. + crypt keyword. It contains a list of users + for this record. diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml index ec35b9c96df..a6351dd8bd2 100644 --- a/doc/src/sgml/protocol.sgml +++ b/doc/src/sgml/protocol.sgml @@ -1,4 +1,4 @@ - + Frontend/Backend Protocol @@ -1295,7 +1295,7 @@ EncryptedPasswordPacket (F) - The encrypted (using crypt()) password. + The encrypted (using MD5 or crypt()) password. diff --git a/doc/src/sgml/ref/alter_user.sgml b/doc/src/sgml/ref/alter_user.sgml index 534d2a7eb2d..3a502197ab2 100644 --- a/doc/src/sgml/ref/alter_user.sgml +++ b/doc/src/sgml/ref/alter_user.sgml @@ -1,5 +1,5 @@ @@ -27,7 +27,7 @@ ALTER USER username [ [ WITH ] option can be: - PASSWORD 'password' + [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password' | CREATEDB | NOCREATEDB | CREATEUSER | NOCREATEUSER | VALID UNTIL 'abstime' @@ -53,10 +53,13 @@ where option can be: - password + [ encrypted | unencrypted ] password The new password to be used for this account. + Encrypted/ unencrypted + controls whether the password is stored encrypted in the + database. diff --git a/doc/src/sgml/ref/create_user.sgml b/doc/src/sgml/ref/create_user.sgml index 8c97dbcf867..f72b20f59d7 100644 --- a/doc/src/sgml/ref/create_user.sgml +++ b/doc/src/sgml/ref/create_user.sgml @@ -1,5 +1,5 @@ @@ -28,7 +28,7 @@ CREATE USER username [ [ WITH ] option can be: SYSID uid - | PASSWORD 'password' + | [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password' | CREATEDB | NOCREATEDB | CREATEUSER | NOCREATEUSER | IN GROUP groupname [, ...] @@ -72,12 +72,19 @@ where option can be: - password + [ encrypted | unencrypted ] password Sets the user's password. If you do not plan to use password authentication you can omit this option, otherwise the user won't be able to connect to a password-authenticated server. + + + ENCRYPTED/UNENCRYPTED controls whether the + password is stored encrypted in the database. Older clients may + have trouble communicating using encrypted password storage. + + See the chapter on client authentication in the Administrator's Guide for details on how to set up authentication mechanisms. diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index d4d4dd8d538..6e80adf00eb 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -967,6 +967,18 @@ env PGOPTIONS='-c geqo=off' psql + + AUSTRALIAN_TIMEZONES (bool) + + + If set to true, CST, EST, + and SAT are interpreted as Australian + timezones rather than as North American Central/Eastern + Timezones and Saturday. The default is false. + + + + deadlock @@ -1260,18 +1272,6 @@ dynamic_library_path = '/usr/local/lib:/home/my_project/lib:$libdir:$libdir/cont - - AUSTRALIAN_TIMEZONES (bool) - - - If set to true, CST, EST, - and SAT are interpreted as Australian - timezones rather than as North American Central/Eastern - Timezones and Saturday. The default is false. - - - - SSL -- cgit v1.2.3