From 3f372ee6b3d8a92921d6f81fd64918189f55f987 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 13 Jun 1998 04:27:18 +0000 Subject: > 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. --- src/include/libpq/hba.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/include/libpq') diff --git a/src/include/libpq/hba.h b/src/include/libpq/hba.h index 8900c6f34f..322c3e0e51 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[]); -- cgit v1.2.1