From: Paul Förster <paul.foerster@gmail.com>
To: " <pgsql-general@postgresql.org>
Subject: Using more than one LDAP?
Date: Wed, 6 Jan 2021 15:38:44 +0100
Message-ID: <08D7C808-63E6-4482-A753-9F3E0DF8ABB5@gmail.com> (raw)
Hi,
can I use more than one LDAP server entry in pg_hba.conf? My tests show that only the first one is used.
Example:
ldap1.domain contains user1, user2
ldap2.another.domain contains user3, user4
All 4 users have an account in a PostgreSQL cluster.
ldap1 is openLDAP and ldap2 is Windows AD. Both naturally have different parameters/options and as such require two different lines in pg_hba.conf.
If I connect as user1 or user2, it works. If I try to connect as user3 or user4, it fails because ldap1 reports the user as non-existent, which is correct for ldap1. But in this case, ldap2 is never asked.
How can I solve this dilemma?
Cheers,
Paul
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
Subject: Re: Using more than one LDAP?
In-Reply-To: <08D7C808-63E6-4482-A753-9F3E0DF8ABB5@gmail.com>
References: <08D7C808-63E6-4482-A753-9F3E0DF8ABB5@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