diff --git a/doc/src/sgml/client-auth.sgml b/doc/src/sgml/client-auth.sgml index 23d90e9d4fae43574b4ba260eb2ee2ba6c9bb450..445b8f4c35639652321ff57e6fd648be2576fa6e 100644 --- a/doc/src/sgml/client-auth.sgml +++ b/doc/src/sgml/client-auth.sgml @@ -1,5 +1,5 @@ @@ -102,7 +102,7 @@ hostnossl database user This record matches connection attempts using Unix-domain sockets. Without a record of this type, Unix-domain socket - connections are disallowed + connections are disallowed. diff --git a/src/backend/libpq/pg_hba.conf.sample b/src/backend/libpq/pg_hba.conf.sample index 946e573ddc9083390fd0c72135e0288fe6347b76..f4f002b707966bff77e034c8bce3623ade767b8d 100644 --- a/src/backend/libpq/pg_hba.conf.sample +++ b/src/backend/libpq/pg_hba.conf.sample @@ -7,15 +7,20 @@ # # This file controls: which hosts are allowed to connect, how clients # are authenticated, which PostgreSQL user names they can use, which -# databases they can access. Records take one of five forms: +# databases they can access. Records take one of seven forms: # -# local DATABASE USER METHOD [OPTION] -# host DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION] -# hostssl DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION] -# host DATABASE USER IP-ADDRESS/CIDR-MASK METHOD [OPTION] -# hostssl DATABASE USER IP-ADDRESS/CIDR-MASK METHOD [OPTION] +# local DATABASE USER METHOD [OPTION] +# host DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION] +# hostssl DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION] +# hostnossl DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION] +# host DATABASE USER IP-ADDRESS/CIDR-MASK METHOD [OPTION] +# hostssl DATABASE USER IP-ADDRESS/CIDR-MASK METHOD [OPTION] +# hostnossl DATABASE USER IP-ADDRESS/CIDR-MASK METHOD [OPTION] # # (The uppercase quantities should be replaced by actual values.) +# The first field is the connection type: "local" is a Unix-domain socket, +# "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an +# SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket. # DATABASE can be "all", "sameuser", "samegroup", a database name (or # a comma-separated list thereof), or a file name prefixed with "@". # USER can be "all", an actual user name or a group name prefixed with