Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ga5kR-0000aH-Nm for pgsql-general@arkaria.postgresql.org; Thu, 20 Dec 2018 21:20:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ga5kQ-0000H2-IF for pgsql-general@arkaria.postgresql.org; Thu, 20 Dec 2018 21:20:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ga5hA-0007nx-Lf for pgsql-general@lists.postgresql.org; Thu, 20 Dec 2018 21:17:28 +0000 Received: from mx11.marsh.com ([205.156.137.71]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ga5h0-0001RR-P0 for pgsql-general@lists.postgresql.org; Thu, 20 Dec 2018 21:17:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=guycarp.com; i=@guycarp.com; q=dns/txt; s=09212017; t=1545340638; x=1576876638; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=a7GfCW5rimHIs+3Ga5UWaGnO31kcIRtZwFnuwE9Sm5I=; b=F1Q7RHdS/WnTruwZvj11pqXdGUx1vV+D5VWNVKXliKHYVRnBlrRuotu0 zXffpTX3Pr1MQ79bS4uGSsQVqgiFrAtsz/puk8imXyrXqktAc5sjx6UIT g42m3CUjcjptDTQuw5l5/Zwg+sfqt+5y+RGURlp/gPKPr/pzpM1giKQu3 /qHlFRS9uHA5D+CYM34QBXPUAYuDC4GKa1yMJxOBRwLGwXJRS+hrf47BU lumHOT5xTaWP4mY3k5DXRdA5CYM8wMISDQL116cEvZ0a1hF+n5FC8+5Kl LbjZIVTaIpiGVuukR+MdTwOcneb+ut41zEYflpALjNjTBEKejmPAz+hsw w==; X-SBRS: None X-sendergroup: RELAYLIST X-recvListener: outgoingmarshmail X-Policy: $RELAYED X-Hostname: usdfwmx11.us.mrshmc.com X-IronPort-AV: E=Sophos;i="5.56,378,1539648000"; d="scan'208";a="177521828" Received: from usdfw21as123v.mrshmc.com (HELO localhost) ([10.23.58.233]) by usdfwmx11.us.mrshmc.com with ESMTP; 20 Dec 2018 21:17:16 +0000 Received: from USDFW21AS400v.mrshmc.com (usdfw21as400v.mrshmc.com [10.23.59.144]) by localhost (RSA Interceptor); Thu, 20 Dec 2018 15:17:04 -0600 Received: from USFKL11XG20CN03.mercer.com (usfkl11xg20cn03.mercer.com [10.2.139.23]) by USDFW21AS400v.mrshmc.com with smtp id a388_a6d3_91aaa733_09c0_4461_929d_b35ba1d0f27e; Thu, 20 Dec 2018 21:17:03 +0000 Received: from USFKL11XG20CN01.mercer.com (10.2.139.21) by USFKL11XG20CN03.mercer.com (10.2.139.23) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 20 Dec 2018 16:17:02 -0500 Received: from USFKL11XG20CN01.mercer.com ([10.2.139.21]) by USFKL11XG20CN01.mercer.com ([10.2.139.21]) with mapi id 15.00.1395.000; Thu, 20 Dec 2018 16:17:02 -0500 From: "Kumar, Virendra" To: Alvaro Herrera CC: "pgsql-general@lists.postgresql.org" Subject: RE: Multiple LDAP Servers for ldap Authentication Thread-Topic: Multiple LDAP Servers for ldap Authentication Thread-Index: AdSYfP3QnSJx8rPuSQWj5iaRg6QNXQARhwEAAAnoziD//8KRAIAARbAA Date: Thu, 20 Dec 2018 21:17:02 +0000 Message-ID: References: <94be2b69bd3d498c8579f95ff7a2f3eb@USFKL11XG20CN01.mercer.com> <20181220202514.khcglsktleb3y65c@alvherre.pgsql> In-Reply-To: <20181220202514.khcglsktleb3y65c@alvherre.pgsql> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.7.51.103] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-RCIS-Action: ALLOW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I figured it out, this is how it works: -- host all all 0.0.0.0/0 ldap = ldapserver=3Dserver1.com ldapserver=3Dserver2.com ldapprefix=3DPROD01\ So documentation need some update. Regards, Virendra -----Original Message----- From: Alvaro Herrera [mailto:alvherre@2ndquadrant.com] Sent: Thursday, December 20, 2018 3:25 PM To: Kumar, Virendra Cc: pgsql-general@lists.postgresql.org Subject: Re: Multiple LDAP Servers for ldap Authentication On 2018-Dec-20, Kumar, Virendra wrote: > Comman separated doesn't work as well. Please separate by a comma and a space, not just a comma. My reading of the OpenLDAP source code, and some quick experiments comparing failure patterns, suggest that that exact combination may work. (OpenLDAP is not exactly well commented.) I think one problem you may or may not hit is the PostgreSQL authentication timeout expiring sooner than OpenLDAP is willing to try the second server. -- =C1lvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services ________________________________ This message is intended only for the use of the addressee and may contain information that is PRIVILEGED AND CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the messag= e and its attachments and notify the sender immediately. Thank you.