From: Stephen Frost <sfrost@snowman.net>
To: Brian Crowell <brian@fluggo.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #9337: SSPI/GSSAPI with mismatched user names
Date: Tue, 25 Feb 2014 12:45:20 -0500
Message-ID: <20140225174520.GC2921@tamriel.snowman.net> (raw)
In-Reply-To: <CAAQkdDrEgt24Lbq6yG5DvjF8Cmmdn6o16WarpAEJxeaC-wubTg@mail.gmail.com>
References: <CAAQkdDqrz_O9EE7QL7vpyC4Ti3qcWGLPPD8Ox+Gevrke9+0zqg@mail.gmail.com>
<CAAQkdDpEQ+jsk9ZCeqyJiw3jGNkiKS4fiP2LhNZOuFHQFQO80g@mail.gmail.com>
<9531.1393275398@sss.pgh.pa.us>
<CAAQkdDqXptf4DM0Bf_uryJ5SxSTz8OR9pURuDj6ik-Pux-Az+w@mail.gmail.com>
<10402.1393278034@sss.pgh.pa.us>
<CAAQkdDrAn2znaGvBLE9BGYc=Yqz1VhW2=_ERndAHZAdgxQrUyg@mail.gmail.com>
<13625.1393288243@sss.pgh.pa.us>
<CAAQkdDrsovd6HWoUniSFBJEqdccM4nEJmWiOVRceDhO3a+_cmg@mail.gmail.com>
<20140225170738.GA2921@tamriel.snowman.net>
<CAAQkdDrEgt24Lbq6yG5DvjF8Cmmdn6o16WarpAEJxeaC-wubTg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
* Brian Crowell (brian@fluggo.com) wrote:
> On Tue, Feb 25, 2014 at 11:07 AM, Stephen Frost <sfrost@snowman.net> wrote:
> > On the other hand, Magnus removing the krb5 auth method also removed
> > krb_server_hostname.. I'll ask him about that because we should
> > probably make that available under 'gss' or we may end up leaving some
> > of our users out in the cold when 9.4 comes out and that'd be quite
> > unfortuante.
>
> I'd be interested in why the principal needs to be specified ahead of
> time, since it arrives in the ticket. Is it a limitation of the
> Kerberos APIs? Or maybe it's to prevent using a different key from the
> key file?
Yeah, I'm pretty sure you have to set up the server-side stuff before
you can actually pass control to GSSAPI (really, the whole thing
is insane because GSSAPI actually wants to control the socket on both
ends to do whatever communication it needs to with it, so that's why
you set everything up, pass control of the socket to the GSSAPI library
on both sides, and then check what answer you get back from it at the
end). Note that the princ we're talking about here is the *server-side*
princ, not the client-side one.
> > If we decide to allow an option where we use the 'default cred' in
> > GSSAPI to also determine the PG username we are authenticating to, we'll
> > want to think about how we support that in libpq and psql and consider
> > what to do about the limitations of not being able to specify different
> > krb_server_hostname depending on the user which is attempting to
> > authenicate.
>
> I figured this would be an optional extension, something you could
> request in the initial packet. You would explicitly ask for it using
> some special invocation of psql, like "psql -K" the way ssh does. As
> such, if there are going to be limitations, you could just choose to
> authenticate the normal way.
That sounds reasonable to me.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 835B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: sfrost@snowman.net, brian@fluggo.com, tgl@sss.pgh.pa.us
Subject: Re: BUG #9337: SSPI/GSSAPI with mismatched user names
In-Reply-To: <20140225174520.GC2921@tamriel.snowman.net>
References: <CAAQkdDqrz_O9EE7QL7vpyC4Ti3qcWGLPPD8Ox+Gevrke9+0zqg@mail.gmail.com> <CAAQkdDpEQ+jsk9ZCeqyJiw3jGNkiKS4fiP2LhNZOuFHQFQO80g@mail.gmail.com> <9531.1393275398@sss.pgh.pa.us> <CAAQkdDqXptf4DM0Bf_uryJ5SxSTz8OR9pURuDj6ik-Pux-Az+w@mail.gmail.com> <10402.1393278034@sss.pgh.pa.us> <CAAQkdDrAn2znaGvBLE9BGYc=Yqz1VhW2=_ERndAHZAdgxQrUyg@mail.gmail.com> <13625.1393288243@sss.pgh.pa.us> <CAAQkdDrsovd6HWoUniSFBJEqdccM4nEJmWiOVRceDhO3a+_cmg@mail.gmail.com> <20140225170738.GA2921@tamriel.snowman.net> <CAAQkdDrEgt24Lbq6yG5DvjF8Cmmdn6o16WarpAEJxeaC-wubTg@mail.gmail.com> <20140225174520.GC2921@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox