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-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=cdde2e7834c7c654a612613ebb24d3e87fe323e9;p=users%2Fsimon%2Fpostgres.git 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 d57fed2a84..15efa8b755 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -1073,7 +1073,7 @@ pg_GSS_recvauth(Port *port) gss_release_buffer(&lmin_s, &gbuf); - return STATUS_OK; + return ret; } #endif /* ENABLE_GSS */