Skip to content

Commit c346ca8

Browse files
committed
When I sent in the sslmode patch I forgot to update the
comments/examples in pg_hba.conf. This patch remedies that, adds a brief explanation of the connection types, and adds a missing period in the docs. Jon Jensen
1 parent d7635e5 commit c346ca8

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

doc/src/sgml/client-auth.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/client-auth.sgml,v 1.58 2003/09/12 22:17:22 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/client-auth.sgml,v 1.59 2003/09/13 16:43:38 momjian Exp $
33
-->
44

55
<chapter id="client-authentication">
@@ -102,7 +102,7 @@ hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable>
102102
<para>
103103
This record matches connection attempts using Unix-domain
104104
sockets. Without a record of this type, Unix-domain socket
105-
connections are disallowed
105+
connections are disallowed.
106106
</para>
107107
</listitem>
108108
</varlistentry>

src/backend/libpq/pg_hba.conf.sample

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,20 @@
77
#
88
# This file controls: which hosts are allowed to connect, how clients
99
# are authenticated, which PostgreSQL user names they can use, which
10-
# databases they can access. Records take one of five forms:
10+
# databases they can access. Records take one of seven forms:
1111
#
12-
# local DATABASE USER METHOD [OPTION]
13-
# host DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION]
14-
# hostssl DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION]
15-
# host DATABASE USER IP-ADDRESS/CIDR-MASK METHOD [OPTION]
16-
# hostssl DATABASE USER IP-ADDRESS/CIDR-MASK METHOD [OPTION]
12+
# local DATABASE USER METHOD [OPTION]
13+
# host DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION]
14+
# hostssl DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION]
15+
# hostnossl DATABASE USER IP-ADDRESS IP-MASK METHOD [OPTION]
16+
# host DATABASE USER IP-ADDRESS/CIDR-MASK METHOD [OPTION]
17+
# hostssl DATABASE USER IP-ADDRESS/CIDR-MASK METHOD [OPTION]
18+
# hostnossl DATABASE USER IP-ADDRESS/CIDR-MASK METHOD [OPTION]
1719
#
1820
# (The uppercase quantities should be replaced by actual values.)
21+
# The first field is the connection type: "local" is a Unix-domain socket,
22+
# "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an
23+
# SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket.
1924
# DATABASE can be "all", "sameuser", "samegroup", a database name (or
2025
# a comma-separated list thereof), or a file name prefixed with "@".
2126
# USER can be "all", an actual user name or a group name prefixed with

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy