Re: weird libpq GSSAPI comment

Robbie Harwood <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.general
Message-ID <[email protected]>
Alvaro Herrera <[email protected]> writes:

> How about this?
>
>                  * If GSSAPI is enabled and we can reach a credential cache,
>                  * set up a handle for it; if it's operating, just send a
>                  * GSS startup message, instead of the SSL negotiation and
>                  * regular startup message below.

Due to the way postgres handled this historically, there are two ways
GSSAPI can be used: for connection encryption, and for authentication
only.  We perform the same dance of sending a "request packet" for
GSSAPI encryption as we do for TLS encryption.  So I'd like us to be
precise about which one we're talking about here (encryption).

The GSSAPI idiom I should have used is "can acquire credentials" (i.e.,
instead of "can reach a credential cache" in your proposal).

There's no such thing as a "GSS startup message".  After negotiating
GSSAPI/TLS encryption (or failing to do so), we send the same things in
all cases, which includes negotiation of authentication mechanism if
any.  (Negotiating GSSAPI for authentication after negotiating GSSAPI
for encryption will short-circuit rather than establishing a second
context, if I remember right.)

I wonder if part of the confusion might be due to the synonyms we're
using here for "in use".  Things seem to be "got running", "set up",
"operating", "negotiated", ... - maybe that's part of the barrier to
understanding?

Thanks,
--Robbie
signature.asc (application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEA5qc6hnelQjDaHWqJTL5F2qVpEIFAl4PnZUACgkQJTL5F2qV
pELV+RAAgypC++nHyNGPnv+3XutWashO21AAGJ2JOlPvw05zd5ZPme1Xkb244LiB
+WyOY0ssmgFUfj2h30ckw/y/JMrmfSFpYIqYFR/AGRB8acp+zdqW6BUm7iE2uX48
jozLqzT79OCqt2mKmfsoNBYZvOvNKXTZqWsQyDBm/dNw6nRQ2ngPLWLSppycZaB4
T8Whvz6z69jC9PdYRPmetetnV3pVjhbFrjToXd9w0urEoePyQCH3EMDvNX4ISkE/
mK8vMz6+0lZDR8AJ6TxGS5HdoL+3TNaZ6oFLrLJRA9O5iNUdm3PWRk36oy0oq0h5
mWehffzBvnj5r1uXxNEzJulnorg4Zc6CzqYcHtWLQZc9OmhfKaERWxuKNDOVaGmn
z2e6eM8lfIMuHAqEVIEYb/z9nLGLJEeLQxBaS5O4TcaB4M2MUWxiIuj6fRWfcwOb
9LWr/pvks9KH9Hx6GfLi/sY9u2ZtdXtrH3BwRikf+8WiVFb3I5vaLHsMnEEKeB/G
JcEkS5FQYNEZwODCuNo48GqQCnQ9tPmInJivrLuBnWYcUE2r8Hi77rV9lyXNFd5W
TA9RjKv2fROVe1RAND0/ByyWqhoI8VFZuLQ2FmSbRpW9TeL7EMNiRnw3droU5F/u
o37XyUQIGjEypzhbvXSjvL3vdu+TyNw5hzuieVntJZabOAhnDpY=
=JvPa
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.