ldap connection parameter lookup - Mailing list pgsql-general

From Zwettler Markus (OIZ)
Subject ldap connection parameter lookup
Date
Msg-id fec12c17f0f34823a4c580649083625e@zuerich.ch
Whole thread Raw
Responses Re: ldap connection parameter lookup
List pgsql-general

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

 

pgsql-general by date:

Previous
From: Enrico Pirozzi
Date:
Subject: Re: upgrade postgres 9.5 to 9.6
Next
From: Atul Kumar
Date:
Subject: Re: upgrade postgres 9.5 to 9.6