pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: AW: ldap connection parameter lookup
Date: Fri, 22 Jan 2021 15:22:06 +0000
Message-ID: <f4b84f9b6e73443abb231b39b646bea4@zuerich.ch> (raw)
In-Reply-To: <d359ef45df77cf0ebfdd68f03a329d8825e3cac1.camel@cybertec.at>
References: <fec12c17f0f34823a4c580649083625e@zuerich.ch>
	<d359ef45df77cf0ebfdd68f03a329d8825e3cac1.camel@cybertec.at>

> -----Ursprüngliche Nachricht-----
> Von: Laurenz Albe <laurenz.albe@cybertec.at>
> Gesendet: Freitag, 15. Januar 2021 17:21
> An: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>; pgsql-
> general@postgresql.org
> Betreff: Re: ldap connection parameter lookup
> 
> On Fri, 2021-01-15 at 14:09 +0000, Zwettler Markus (OIZ) wrote:
> > I want to use ldap to lookup the connection parameters:
> > https://www.postgresql.org/docs/12/libpq-ldap.html
> >
> >
> > Do I have to create one static entry per database within pg_service.conf like:
> >
> > [mydatabase]
> >
> ldap://ldap.mycompany.com/dc=mycompany,dc=com?description?one?(cn=mydat
> abase)
> >
> >
> > or is there also some kind of generic variant like this (meaning lookup connection
> parameters for the database name I tell you somehow):
> >
> > [${PGDATABASE}]
> >
> ldap://ldap.mycompany.com/dc=mycompany,dc=com?description?one?(cn=${PGD
> ATABASE})
> 
> I proposed something like that a while ago:
> https://postgr.es/m/D960CB61B694CF459DCFB4B0128514C2F3442B%40exadv11
> .host.magwien.gv.at
> but it was rejected.
> 
> Perhaps you could come up with a better version.
> 
> Yours,
> Laurenz Albe
> --
> Cybertec | https://www.cybertec-postgresql.com



I'm afraid not. My proposal is as close to yours.

Anyway. PostgreSQL needs some kind of generic central name resolution service.

It is not feasible to do static entries per database in a large environment with hundreds of clients.

It's also not feasible to have ordinary endusers have to handle this static entry by themselves.

So Tom, lets give it a try?

Regards,
Markus




view thread (2+ messages)  latest in thread

Message-ID: <f4b84f9b6e73443abb231b39b646bea4@zuerich.ch>
Permalink:  ../f4b84f9b6e73443abb231b39b646bea4@zuerich.ch/
Also on:    postgresql.org/message-id/f4b84f9b6e73443abb231b39b646bea4@zuerich.ch

 · 

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: Markus.Zwettler@zuerich.ch, laurenz.albe@cybertec.at, tgl@sss.pgh.pa.us
  Subject: Re: ldap connection parameter lookup
  In-Reply-To: <f4b84f9b6e73443abb231b39b646bea4@zuerich.ch>
  References: <fec12c17f0f34823a4c580649083625e@zuerich.ch> <d359ef45df77cf0ebfdd68f03a329d8825e3cac1.camel@cybertec.at> <f4b84f9b6e73443abb231b39b646bea4@zuerich.ch>

* 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