Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kx9xa-0006oY-OT for pgsql-general@arkaria.postgresql.org; Wed, 06 Jan 2021 14:38:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kx9xZ-0008Cb-NS for pgsql-general@arkaria.postgresql.org; Wed, 06 Jan 2021 14:38:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kx9xZ-0008CU-DF for pgsql-general@lists.postgresql.org; Wed, 06 Jan 2021 14:38:49 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kx9xX-0004Rd-85 for pgsql-general@postgresql.org; Wed, 06 Jan 2021 14:38:48 +0000 Received: by mail-wm1-x330.google.com with SMTP id c133so2611678wme.4 for ; Wed, 06 Jan 2021 06:38:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=rmzqYsteij7yENLzMWWWaK9KhsclQLN/mV+ueaTXmU0=; b=K0hce7IX64wOTpJzoZrltL3g6wIVBdiMkugAS+Yx5pyCZg+4H163krA6NYK+wtc5PH 1rFA9ws5hAEuHz3YV5cPUaolkjky6JNci9KyvuU3Ht3sVuFpBsDYU2P41jTJX0MPOWkO OJt71fEIMtoDup96ays+ggDt8IukG4w/zMzOpJHKRW0h//D+KpBpHiJp91m9mJcTBmcN xFG8ZJTBBqkXwHd/TwZwrIiTddd+ZWc6P4os+HE9uXGPEUriN/6JOkbkwwSe3cbUAZvA 1Bd8l+IsGO40o3kcnSmvg1OfM+afVYA50601VReEWuZ6m8oVVW5/QfWIpIMeM8JKYuIN f5Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=rmzqYsteij7yENLzMWWWaK9KhsclQLN/mV+ueaTXmU0=; b=oLKqNWnojfCfjIOU594vgCqjE5q3MSB7ulZ1/OIDYxEKLoUurIlyGvzzRql3gcbqlp yNKzLEb+zucfBeSyfMAfTpP2jS2RQi2VHyAZb2TK981d5Exw9Dt7XIADd+/j9oXfvXkJ wqb8fNnWM3TeLtikhF1LF6NrfMO/w7D2tK/6qM55kz1yiqR8oxGKjOKzZLOClzzPAAAY PdQ9PxkB5OCQFzSSTpGwrvoJclxdL68g16b6EUF5gtQy4HKA2NfAkBw75MBnth36nzOT vxfdC0/zWODOptkRkhubEIlpoaBemGgPITJfZCSf8HIPMh8ovHkRrRHwavQ036wSsFdT LQrA== X-Gm-Message-State: AOAM531wN7jnhVSJC+lWJPBHJ2+lXD6icFb5ISrKI7bxZBezLGHM5EKh rSK8i0TZLfVOGTxn09gZfmlB7ZzHMgM= X-Google-Smtp-Source: ABdhPJxjlnGCBHMFiVmqPVATCX7/FTsVnvropHPqwH4/3k/vJUnbki480TWxj3JHaWgAA3ob6sbycg== X-Received: by 2002:a7b:c088:: with SMTP id r8mr3984016wmh.45.1609943925437; Wed, 06 Jan 2021 06:38:45 -0800 (PST) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id l1sm3450427wrq.64.2021.01.06.06.38.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jan 2021 06:38:45 -0800 (PST) From: =?utf-8?Q?Paul_F=C3=B6rster?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Using more than one LDAP? Message-Id: <08D7C808-63E6-4482-A753-9F3E0DF8ABB5@gmail.com> Date: Wed, 6 Jan 2021 15:38:44 +0100 To: "pgsql-general@postgresql.org >> PG-General Mailing List" X-Mailer: Apple Mail (2.3654.40.0.2.32) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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=