diff options
| author | Bruce Momjian | 1998-06-13 04:27:18 +0000 |
|---|---|---|
| committer | Bruce Momjian | 1998-06-13 04:27:18 +0000 |
| commit | 3f372ee6b3d8a92921d6f81fd64918189f55f987 (patch) | |
| tree | 86e711cf2ae2af087925bf789bdc1492711a8241 /src/include/libpq | |
| parent | d939f60ca7b7cdb8397b96ca1769e30b4159f2c0 (diff) | |
> I needed to do that for the web database that I'm setting up. We
have > 20000 users and each (potentially) needs a separate database
which is > only accessible to them. Rather than having 20000 lines
in pg_hba.conf, > I've patched Postgres so that the special token
"sameuser" in the > database field of pg_hba.conf allows access
only to the username which > is connecting.
Diffstat (limited to 'src/include/libpq')
| -rw-r--r-- | src/include/libpq/hba.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/libpq/hba.h b/src/include/libpq/hba.h index 8900c6f34f8..322c3e0e51f 100644 --- a/src/include/libpq/hba.h +++ b/src/include/libpq/hba.h @@ -4,7 +4,7 @@ * Interface to hba.c * * - * $Id: hba.h,v 1.8 1998/02/26 04:41:43 momjian Exp $ + * $Id: hba.h,v 1.9 1998/06/13 04:27:18 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -51,8 +51,8 @@ typedef enum UserAuth } UserAuth; int -hba_getauthmethod(SockAddr *raddr, char *database, char *auth_arg, - UserAuth *auth_method); +hba_getauthmethod(SockAddr *raddr, char *user, char *database, + char *auth_arg, UserAuth *auth_method); int authident(struct sockaddr_in * raddr, struct sockaddr_in * laddr, const char postgres_username[], const char auth_arg[]); |
