Support "samehost" and "samenet" specifications in pg_hba.conf,
Tom Lane <tgl@sss.pgh.pa.us>
Support "samehost" and "samenet" specifications in pg_hba.conf, by enumerating the machine's IP interfaces to look for a match. Stef Walter
Files
| Path | Change | +/− |
|---|---|---|
| configure | modified | +75 −2 |
| configure.in | modified | +12 −3 |
| doc/src/sgml/client-auth.sgml | modified | +8 −1 |
| src/backend/libpq/hba.c | modified | +209 −97 |
| src/backend/libpq/ip.c | modified | +411 −5 |
| src/backend/libpq/pg_hba.conf.sample | modified | +3 −0 |
| src/include/libpq/hba.h | modified | +9 −1 |
| src/include/libpq/ip.h | modified | +12 −6 |
| src/include/pg_config.h.in | modified | +15 −0 |
| src/tools/ifaddrs/Makefile | added | +27 −0 |
| src/tools/ifaddrs/README | added | +12 −0 |
| src/tools/ifaddrs/test_ifaddrs.c | added | +73 −0 |
| src/tools/msvc/Mkvcbuild.pm | modified | +2 −1 |