From bcb0ccf5be9ef9e1a76968e773cb2bd11565ef9c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 16 Aug 2001 16:24:16 +0000 Subject: Add new MD5 pg_hba.conf keyword. Prevent fallback to crypt. --- doc/src/sgml/client-auth.sgml | 35 +++++++++++++++++++++++------------ doc/src/sgml/jdbc.sgml | 4 ++-- 2 files changed, 25 insertions(+), 14 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/client-auth.sgml b/doc/src/sgml/client-auth.sgml index a7c9c8616b3..76cba407515 100644 --- a/doc/src/sgml/client-auth.sgml +++ b/doc/src/sgml/client-auth.sgml @@ -1,4 +1,4 @@ - + Client Authentication @@ -194,25 +194,36 @@ hostssl database IP-address The password is sent over the wire in clear text. For better - protection, use the crypt method. + protection, use the md5 or + crypt methods. - crypt + md5 Like the password method, but the password is sent over the wire encrypted using a simple challenge-response protocol. This protects against incidental wire-sniffing. The name of a file may follow the - crypt keyword. It contains a list of users + md5 keyword. It contains a list of users for this record. + + crypt + + + Like the md5 method but uses older crypt + authentication for pre-7.2 clients. + + + + krb4 @@ -328,7 +339,7 @@ host template1 192.168.93.0 255.255.255.0 ident sameuser # Allow a user from host 192.168.12.10 to connect to database "template1" # if the user's password in pg_shadow is correctly supplied: -host template1 192.168.12.10 255.255.255.255 crypt +host template1 192.168.12.10 255.255.255.255 md5 # In the absence of preceding "host" lines, these two lines will reject # all connection attempts from 192.168.54.1 (since that entry will be @@ -377,11 +388,11 @@ host all 192.168.0.0 255.255.0.0 ident omicron - To restrict the set of users that are allowed to connect to - certain databases, list the set of users in a separate file (one - user name per line) in the same directory that - pg_hba.conf is in, and mention the (base) name of the - file after the password or crypt keyword, + To restrict the set of users that are allowed to connect to certain + databases, list the set of users in a separate file (one user name + per line) in the same directory that pg_hba.conf is in, + and mention the (base) name of the file after the + password, md5, or crypt keyword, respectively, in pg_hba.conf. If you do not use this feature, then any user that is known to the database system can connect to any database (so long as he passes password @@ -414,8 +425,8 @@ host all 192.168.0.0 255.255.0.0 ident omicron - Alternative passwords cannot be used when using the - crypt method. The file will still be evaluated as + Alternative passwords cannot be used when using the md5 + or crypt methods. The file will still be evaluated as usual but the password field will simply be ignored and the pg_shadow password will be used. diff --git a/doc/src/sgml/jdbc.sgml b/doc/src/sgml/jdbc.sgml index 0d02c039672..3063ee432df 100644 --- a/doc/src/sgml/jdbc.sgml +++ b/doc/src/sgml/jdbc.sgml @@ -1,5 +1,5 @@ @@ -162,7 +162,7 @@ java uk.org.retep.finder.Main pg_hba.conf file may need to be configured. Refer to the Administrator's Guide for details. The JDBC Driver supports trust, - ident, password, and crypt authentication methods. + ident, password, and md5, crypt authentication methods. -- cgit v1.2.3