Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f5rWZ-00030C-Hh for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Apr 2018 11:33:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f5rWY-00037i-Cl for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Apr 2018 11:33:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f5rVK-0000pF-HM for pgsql-bugs@lists.postgresql.org; Tue, 10 Apr 2018 11:32:02 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f5rVH-0005MG-BO for pgsql-bugs@lists.postgresql.org; Tue, 10 Apr 2018 11:32:00 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 02A0F5F79C; Tue, 10 Apr 2018 07:31:57 -0400 (EDT) Date: Tue, 10 Apr 2018 07:31:57 -0400 From: Stephen Frost To: Greg k Cc: "pgsql-bugs@lists.postgresql.org" Subject: Re: LDAP authentication fails with concurrent create extensions Message-ID: <20180410113157.GL27724@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EmwFttYoLalE/5Ab" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --EmwFttYoLalE/5Ab Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, * Greg k (gregg.kay@gmail.com) wrote: > We are using postgresql 10.3 on Centos 7.2 with LDAP authentication (samba4 > with AD domain controller). We've recently moved to LDAP authentication and > are now encountering a problem where some concurrent connections that > create extensions in different databases at the same time are failing with > a "Can't contact LDAP server" error. The postgres error log contains: You really shouldn't be using LDAP in an AD environment for authentication- configure and use Kerberos instead, which is much more secure than having cleartext passwords seen by the PG server and then proxied to the LDAP server. That said, there does appear to be an issue here, thanks for creating a test case. Stephen --EmwFttYoLalE/5Ab Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJazKCtAAoJEO1sijiDR2RVj2MP/jMmahtQzfv69GNHCq6w1HoP lFKD/DcPgMmB5mPmMIkb7NiRKDp1JJxIsOxdz80EeWrea3nb3caVJetP3Q4CJ7Ps oRdc8neUs0vmLQqaddQQH3w5l7qACd4fEfoGTQFNYa6lKJg3bAqLrHdNiZ61Xj95 x/Ni4bsq74TZqwOFjMaTQp+8ESKbF+wq5JwapadHsSi3KC2ZcuZkc2H2L4aa0n6M hW5SqN6KSu9kqVGIetVZiMFV22odDIvWw+l2/5Y3fGejkL2wYYWoHQQOwyvJQHKc DAKmxtTYV54HKiNAK3BLXXH5s2euS67DuOzsC1o2Ir1y6k0YJPhymLSLwQ1Wi9In r21PbTOXrvMK3eAO1z75pByOFkyqUySFRspUf1lNdcRQV/FxA3gYdbdRoQQt7LfM 7B3yj06yYAskF3DWmFT05V8Q+w7bQqthPkz+aZ842kVvN+v6tCHb/rw1d29K0D0R s19YOO7o2osLRSyumnWQQ/ye8o2A0EDsuphBDotJ4MleR7fDZCfX+z8lqfkNngyN yxtjgBwqoMQdzrVV3QxZeRFgn0vqUAv88YqPvhW2/wgrIyGbeLKEdGGOZE8iBKMd 25oy/VYXpbtd6zp7btBXUdH/GrOM+UkRQ/ICy8eXWFehnxL1xY58kOKxa3fBN9XC Y8PMCq35jqYmzz+zOnHK =a02T -----END PGP SIGNATURE----- --EmwFttYoLalE/5Ab--