Properly return the usermap result when doing gssapi authentication. Without
authorMagnus Hagander <magnus@hagander.net>
Wed, 27 May 2009 21:08:22 +0000 (21:08 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 27 May 2009 21:08:22 +0000 (21:08 +0000)
this, the username was in practice never matched against the kerberos principal
used to log in.

src/backend/libpq/auth.c

index d57fed2a84cd0969f29e9492620f654f8cb87885..15efa8b75505f195c1939b9ef516588fc9662db4 100644 (file)
@@ -1073,7 +1073,7 @@ pg_GSS_recvauth(Port *port)
 
        gss_release_buffer(&lmin_s, &gbuf);
 
-       return STATUS_OK;
+       return ret;
 }
 #endif   /* ENABLE_GSS */