Add GSS information to connection authorized log message
authorStephen Frost <[email protected]>
Wed, 2 Dec 2020 19:41:53 +0000 (14:41 -0500)
committerStephen Frost <[email protected]>
Wed, 2 Dec 2020 19:41:53 +0000 (14:41 -0500)
commitdc11f31a1a891f8aa8890644e837556bcc5a75e7
tree12346c9677a28b24f4eed258c7a167b0d83eb762
parent01469241b2ff6f17fc0b3f20f01559145ffab29e
Add GSS information to connection authorized log message

GSS information (if used) such as if the connection was authorized using
GSS or if it was encrypted using GSS, and perhaps most importantly, what
the GSS principal used for the authentication was, is extremely useful
but wasn't being included in the connection authorized log message.

Therefore, add to the connection authorized log message that
information, in a similar manner to how we log SSL information when SSL
is used for a connection.

Author: Vignesh C
Reviewed-by: Bharath Rupireddy
Discussion: https://www.postgresql.org/message-id/CALDaNm2N1385_Ltoo%3DS7VGT-ESu_bRQa-sC1wg6ikrM2L2Z49w%40mail.gmail.com
src/backend/utils/init/postinit.c
src/test/kerberos/t/001_auth.pl