pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Förster <paul.foerster@gmail.com>
To: Magnus Hagander <magnus@hagander.net>
Cc: " <pgsql-general@postgresql.org>
Subject: Re: Using more than one LDAP?
Date: Thu, 7 Jan 2021 15:08:31 +0100
Message-ID: <15055352-B99F-4F38-AFCF-7B78341820F5@gmail.com> (raw)
In-Reply-To: <CABUevEw6W_+0mh4SoG7mnb360_L4Ci-BKL8gF0G=+KiSYQXAmg@mail.gmail.com>
References: <08D7C808-63E6-4482-A753-9F3E0DF8ABB5@gmail.com>
	<CABUevEySDnhqeaKRBkkGUeDYEvVSm6-a6TSQztrMib8nZmjNdw@mail.gmail.com>
	<B2AEC5C8-D89C-46F3-83FF-8BA3A6008ACE@gmail.com>
	<CABUevExmJjVLHFRbbCDUrkhyZ=J20dV-xXxGwKgzdcx4-c-+fw@mail.gmail.com>
	<CC9B3338-9972-4210-893C-895DDC7D5E8C@gmail.com>
	<CABUevEw6W_+0mh4SoG7mnb360_L4Ci-BKL8gF0G=+KiSYQXAmg@mail.gmail.com>

Hi Magnus,

> On 07. Jan, 2021, at 12:43, Magnus Hagander <magnus@hagander.net> wrote:
> 
> The docs say "When using an external authentication system such as
> Ident or GSSAPI, the name of the operating system user that initiated
> the connection might not be the same as the database user (role) that
> is to be used."
> 
> I think that's a bit of a left-over to when it was really just ident.
> First of all it should probably say peer rather than ident, and it's
> not actually operating systems that are relevant here.
> 
> So I can understand you getting ab it confused by that. but the
> property that matter is where the username comes from. In GSSAPI, or
> peer, or certificate, etc, the username is provided by the external
> system, and the mapping is applied *after* that.
> 
> With LDAP authentication, the username is provided by the client, and
> is then passed to the external system.
> 
> Mapping applies *after* the authentication, which inthe case of LDAP
> would be too late to make any difference.
> 
> The references to "unix user" and "operating system users" are
> probably a leftover from the old days and actually contribute to some
> of the confusion I think.

that explains it.

The use case in our company is: Developers connect with tools like DbVisualizer or SQL Developer (Oracle using the nasty PostgreSQL Hack :-( ) providing their username via JDBC to the database. Developers work on Windows, the databases run on Linux (SLES) and the AD obviously runs on Windows.

Ok, since LDAP doesn't work that way, I either need to build GSSAPI packages and have the AD admins to provide me with the keytab file or make the transition a "hard" one, i.e. no transition phase. Though I'd rather have liked to see a transition phase where either account could have been used I personally can live with that. It's the developers who will have to change quickly, not me. ;-)

Cheers,
Paul




view thread (9+ messages)  latest in thread

Message-ID: <15055352-B99F-4F38-AFCF-7B78341820F5@gmail.com>
Permalink:  ../15055352-B99F-4F38-AFCF-7B78341820F5@gmail.com/
Also on:    postgresql.org/message-id/15055352-B99F-4F38-AFCF-7B78341820F5@gmail.com

 · 

reply

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-general@postgresql.org
  Cc: paul.foerster@gmail.com, magnus@hagander.net
  Subject: Re: Using more than one LDAP?
  In-Reply-To: <15055352-B99F-4F38-AFCF-7B78341820F5@gmail.com>
  References: <08D7C808-63E6-4482-A753-9F3E0DF8ABB5@gmail.com> <CABUevEySDnhqeaKRBkkGUeDYEvVSm6-a6TSQztrMib8nZmjNdw@mail.gmail.com> <B2AEC5C8-D89C-46F3-83FF-8BA3A6008ACE@gmail.com> <CABUevExmJjVLHFRbbCDUrkhyZ=J20dV-xXxGwKgzdcx4-c-+fw@mail.gmail.com> <CC9B3338-9972-4210-893C-895DDC7D5E8C@gmail.com> <CABUevEw6W_+0mh4SoG7mnb360_L4Ci-BKL8gF0G=+KiSYQXAmg@mail.gmail.com> <15055352-B99F-4F38-AFCF-7B78341820F5@gmail.com>

* 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