|
1 | 1 | <!--
|
2 |
| -$Header: /cvsroot/pgsql/doc/src/sgml/client-auth.sgml,v 1.54 2003/08/16 23:33:49 momjian Exp $ |
| 2 | +$Header: /cvsroot/pgsql/doc/src/sgml/client-auth.sgml,v 1.55 2003/08/17 04:39:11 momjian Exp $ |
3 | 3 | -->
|
4 | 4 |
|
5 | 5 | <chapter id="client-authentication">
|
@@ -451,13 +451,23 @@ local all all trust
|
451 | 451 | # TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
|
452 | 452 | host all all 127.0.0.1 255.255.255.255 trust
|
453 | 453 |
|
| 454 | +# The same as the last line but using a CIDR mask |
| 455 | +# |
| 456 | +# TYPE DATABASE USER IP-ADDRESS/CIDR-mask METHOD |
| 457 | +host all all 127.0.0.1/32 trust |
| 458 | + |
454 | 459 | # Allow any user from any host with IP address 192.168.93.x to connect
|
455 | 460 | # to database "template1" as the same user name that ident reports for
|
456 | 461 | # the connection (typically the Unix user name).
|
457 | 462 | #
|
458 | 463 | # TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
|
459 | 464 | host template1 all 192.168.93.0 255.255.255.0 ident sameuser
|
460 | 465 |
|
| 466 | +# The same as the last line but using a CIDR mask |
| 467 | +# |
| 468 | +# TYPE DATABASE USER IP-ADDRESS/CIDR-mask METHOD |
| 469 | +host template1 all 192.168.93.0/24 ident sameuser |
| 470 | + |
461 | 471 | # Allow a user from host 192.168.12.10 to connect to database
|
462 | 472 | # "template1" if the user's password is correctly supplied.
|
463 | 473 | #
|
|