Re: [pgAdmin4][Patch] - RM 5457 - Kerberos Authentication - Phase 1

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin4][Patch] - RM 5457 - Kerberos Authentication - Phase 1
Date: 2021-01-02 15:56:19
Message-ID: CA+OCxozp+n+Mq+t=hPH1ExwT-MJbrhY0ujgkf+UoUriHo1PpGA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Stephen

On Sat, 2 Jan 2021 at 15:41, Stephen Frost <sfrost(at)snowman(dot)net> wrote:

> Greetings,
>
> * Khushboo Vashi (khushboo(dot)vashi(at)enterprisedb(dot)com) wrote:
> > Please find the attached patch to support Kerberos Authentication in
> > pgAdmin RM 5457.
> >
> > The patch introduces a new pluggable option for Kerberos authentication,
> > using SPNEGO to forward kerberos tickets through a browser which will
> > bypass the login page entirely if the Kerberos Authentication succeeds.
>
> I've taken a (very short) look at this as it's certainly something that
> I'm interested in and glad to see work is being done on it.
>
> I notice that 'delegated_creds' is being set but it's unclear to me how
> they're actually being used (if at all), which is a very important part
> of Kerberos.
>
> What's commonly done with mod_auth_kerb/mod_auth_gss is that the
> delegated credentials are stored on the filesystem in a temporary
> directory and then an environment variable is set to signal to libpq /
> the Kerberos libraries that the delegated credentials can be found in
> the temporary file. I don't see any of that happening in this patch- is
> that already handled in some way? If not, what's the plan for making
> that work? Also important is to make sure that this approach will work
> for constrainted delegation implementations.

Phase 1 of this project (which this patch aims to implement) is to handle
Kerberos logins to pgAdmin when running in server mode (as we’ve already
done for LDAP, except KRB authenticated users don’t see a login page of
course). Phase 2 will add support for logging into the PostgreSQL servers -
I believe that is where we’ll need to handle delegated credentials, correct?

> --
--
Dave Page
https://pgsnake.blogspot.com

EDB Postgres
https://www.enterprisedb.com

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Stephen Frost 2021-01-02 15:59:47 Re: [pgAdmin4][Patch] - RM 5457 - Kerberos Authentication - Phase 1
Previous Message Stephen Frost 2021-01-02 15:41:30 Re: [pgAdmin4][Patch] - RM 5457 - Kerberos Authentication - Phase 1