From: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: ldap connection parameter lookup
Date: Fri, 15 Jan 2021 14:09:13 +0000
Message-ID: <fec12c17f0f34823a4c580649083625e@zuerich.ch> (raw)
Hi,
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=mydatabase)
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=${PGDATABASE})
Thanks, Markus
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
Subject: Re: ldap connection parameter lookup
In-Reply-To: <fec12c17f0f34823a4c580649083625e@zuerich.ch>
References: <fec12c17f0f34823a4c580649083625e@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