Re: [PATCHES] cidr docco

2003-08-16 Thread Bruce Momjian

Patch applied.  Thanks.

---


Andrew Dunstan wrote:
> 
> 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.
> 
> Sorry for the lateness - I should have done this a month ago.
> 
> cheers
> 
> andrew

> Index: client-auth.sgml
> ===
> RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/client-auth.sgml,v
> retrieving revision 1.53
> diff -c -r1.53 client-auth.sgml
> *** client-auth.sgml  26 Jul 2003 13:50:01 -  1.53
> --- client-auth.sgml  7 Aug 2003 19:05:41 -
> ***
> *** 451,462 
> --- 451,472 
>   # TYPE  DATABASEUSERIP-ADDRESSIP-MASK   METHOD
>   hostall all 127.0.0.1 255.255.255.255   trust 
>   
> + # The same as the last line but using a CIDR mask
> + #
> + # TYPE  DATABASEUSERIP-ADDRESS/CIDR-mask  METHOD
> + hostall 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).
>   # 
>   # TYPE  DATABASEUSERIP-ADDRESSIP-MASK   METHOD
>   hosttemplate1   all 192.168.93.0  255.255.255.0 ident sameuser
> + 
> + # The same as the last line but using a CIDR mask
> + #
> + # TYPE  DATABASEUSERIP-ADDRESS/CIDR-mask  METHOD
> + hosttemplate1   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.

> 
> ---(end of broadcast)---
> TIP 3: if posting/reading through Usenet, please send an appropriate
>   subscribe-nomail command to [EMAIL PROTECTED] so that your
>   message can get through to the mailing list cleanly

-- 
  Bruce Momjian|  http://candle.pha.pa.us
  [EMAIL PROTECTED]   |  (610) 359-1001
  +  If your life is a hard drive, |  13 Roberts Road
  +  Christ can be your backup.|  Newtown Square, Pennsylvania 19073

---(end of broadcast)---
TIP 8: explain analyze is your friend


[PATCHES] cidr docco

2003-08-08 Thread Andrew Dunstan
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.

Sorry for the lateness - I should have done this a month ago.

cheers

andrew
Index: client-auth.sgml
===
RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/client-auth.sgml,v
retrieving revision 1.53
diff -c -r1.53 client-auth.sgml
*** client-auth.sgml26 Jul 2003 13:50:01 -  1.53
--- client-auth.sgml7 Aug 2003 19:05:41 -
***
*** 451,462 
--- 451,472 
  # TYPE  DATABASEUSERIP-ADDRESSIP-MASK   METHOD
  hostall all 127.0.0.1 255.255.255.255   trust 
  
+ # The same as the last line but using a CIDR mask
+ #
+ # TYPE  DATABASEUSERIP-ADDRESS/CIDR-mask  METHOD
+ hostall 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).
  # 
  # TYPE  DATABASEUSERIP-ADDRESSIP-MASK   METHOD
  hosttemplate1   all 192.168.93.0  255.255.255.0 ident sameuser
+ 
+ # The same as the last line but using a CIDR mask
+ #
+ # TYPE  DATABASEUSERIP-ADDRESS/CIDR-mask  METHOD
+ hosttemplate1   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.

---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
  subscribe-nomail command to [EMAIL PROTECTED] so that your
  message can get through to the mailing list cleanly