Skip site navigation (1) Skip section navigation (2)

[PATCH] Patch to make pg_hba.conf handle virtualhost access control and samehost keyword

From: Damien Clermonté <damien(dot)clermonte(at)free(dot)fr>
To: pgsql-patches(at)postgresql(dot)org
Subject: [PATCH] Patch to make pg_hba.conf handle virtualhost access control and samehost keyword
Date: 2001-07-03 15:17:08
Message-ID: 3B41E1F4.9030006@free.fr (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Hi
This patch againsts postgresql 7.1.2 allows you to control access based on the
virtual host address only (virtualhost access type), or both the remote
address and the local address (connection access type).

For example:

connection all 192.168.42.0 255.255.255.0 192.168.1.42 255.255.255.255 trust


This patch also allows keyword "samehost", similar to "sameuser" but for
hosts.

For example:

virtualhost sameuser samehost.sql.domain.com 255.255.255.255 trust

will prevent you from doing 1 entry per user, all you need is a
(local) dns entry for each host (user foo needs foo.sql.domain.com).
If the dns entry is not found, the line is dropped, so rejecting with
samehost is not a good idea for the moment.

Any comments are welcome.
Please not that I'm not on the list.

---
Damien Clermonte

Attachment: postgresql-7.1.2-hba.patch
Description: text/plain (8.6 KB)

Responses

pgsql-hackers by date

Next:From: Alex PilosovDate: 2001-07-03 15:20:33
Subject: Re: selecting from cursor
Previous:From: Thomas SwanDate: 2001-07-03 15:05:18
Subject: Re: New data type: uniqueidentifier

pgsql-patches by date

Next:From: Peter EisentrautDate: 2001-07-03 15:37:14
Subject: Re: encode in base code
Previous:From: Marko KreenDate: 2001-07-03 06:55:29
Subject: Re: encode in base code

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group