From: Magnus Hagander Date: Wed, 27 May 2009 21:08:22 +0000 (+0000) Subject: Properly return the usermap result when doing gssapi authentication. Without X-Git-Tag: REL8_4_RC1~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1c2781951f31ed8350554d6cd1b01eeb9a9f496;p=postgresql Properly return the usermap result when doing gssapi authentication. Without this, the username was in practice never matched against the kerberos principal used to log in. --- diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index d5c8b71114..fb51d8df04 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.180 2009/04/01 03:23:50 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.181 2009/05/27 21:08:22 mha Exp $ * *------------------------------------------------------------------------- */ @@ -1073,7 +1073,7 @@ pg_GSS_recvauth(Port *port) gss_release_buffer(&lmin_s, &gbuf); - return STATUS_OK; + return ret; } #endif /* ENABLE_GSS */