diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-01 23:25:39 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-08-01 23:25:39 +0000 |
commit | bc042e0a775040927b194473b4abf9c48e56d0a5 (patch) | |
tree | 081de4fd0d17366b5f7f15cd49fdd175ae75ed24 /src/backend/libpq/auth.c | |
parent | 7208518720260735b7c8b1c27f34e5fe08951241 (diff) |
Support ident authentication on local (Unix) socket connections, if the
system supports SO_PEERCRED requests for Unix sockets. This is an
amalgamation of patches submitted by Helge Bahmann and Oliver Elphick,
with some editorializing by yours truly.
Diffstat (limited to 'src/backend/libpq/auth.c')
-rw-r--r-- | src/backend/libpq/auth.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 6cf122119f1..77bcc4ef236 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.54 2001/07/21 00:29:56 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.55 2001/08/01 23:25:39 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -494,8 +494,7 @@ ClientAuthentication(Port *port) break; case uaIdent: - status = authident(&port->raddr.in, &port->laddr.in, - port->user, port->auth_arg); + status = authident(port); break; case uaPassword: @@ -654,8 +653,7 @@ map_old_to_new(Port *port, UserAuth old, int status) break; case uaIdent: - status = authident(&port->raddr.in, &port->laddr.in, - port->user, port->auth_arg); + status = authident(port); break; case uaPassword: |