aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-08-17 04:39:11 +0000
committerBruce Momjian <bruce@momjian.us>2003-08-17 04:39:11 +0000
commit2326ade600b83b50306d7eb6250907d2a229cb64 (patch)
treec012ed99388e9214b81162d13ab42a6ba62bd7f8
parentf7d9aa8fbf443b95a27738215802e6d2dcbc4f41 (diff)
downloadpostgresql-2326ade600b83b50306d7eb6250907d2a229cb64.tar.gz
postgresql-2326ade600b83b50306d7eb6250907d2a229cb64.zip
I just noticed that the sample pg_hba.conf in the docs doesn't contain
any use of CIDR masks - here's a patch that adds a couple of sample lines and associated comments. Andrew Dunstan
-rw-r--r--doc/src/sgml/client-auth.sgml12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/src/sgml/client-auth.sgml b/doc/src/sgml/client-auth.sgml
index 6e7cbc92b61..36b4a910613 100644
--- a/doc/src/sgml/client-auth.sgml
+++ b/doc/src/sgml/client-auth.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/client-auth.sgml,v 1.54 2003/08/16 23:33:49 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/client-auth.sgml,v 1.55 2003/08/17 04:39:11 momjian Exp $
-->
<chapter id="client-authentication">
@@ -451,6 +451,11 @@ local all all trust
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
host all all 127.0.0.1 255.255.255.255 trust
+# The same as the last line but using a CIDR mask
+#
+# TYPE DATABASE USER IP-ADDRESS/CIDR-mask METHOD
+host all all 127.0.0.1/32 trust
+
# Allow any user from any host with IP address 192.168.93.x to connect
# to database "template1" as the same user name that ident reports for
# the connection (typically the Unix user name).
@@ -458,6 +463,11 @@ host all all 127.0.0.1 255.255.255.255 trust
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
host template1 all 192.168.93.0 255.255.255.0 ident sameuser
+# The same as the last line but using a CIDR mask
+#
+# TYPE DATABASE USER IP-ADDRESS/CIDR-mask METHOD
+host template1 all 192.168.93.0/24 ident sameuser
+
# Allow a user from host 192.168.12.10 to connect to database
# "template1" if the user's password is correctly supplied.
#