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 1jidO2-000489-Ol for pgsql-general@arkaria.postgresql.org; Tue, 09 Jun 2020 12:29: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 1jidO1-0001hb-Jx for pgsql-general@arkaria.postgresql.org; Tue, 09 Jun 2020 12:29: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 1jidO1-0001hU-CK for pgsql-general@lists.postgresql.org; Tue, 09 Jun 2020 12:29:49 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jidNy-00034W-Uy for pgsql-general@lists.postgresql.org; Tue, 09 Jun 2020 12:29:48 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 7E03E5F7A5; Tue, 9 Jun 2020 08:29:44 -0400 (EDT) Date: Tue, 9 Jun 2020 08:29:44 -0400 From: Stephen Frost To: Chris Stephens Cc: Thomas Munro , "pgsql-generallists.postgresql.org" Subject: Re: troubleshooting postgresql ldap authentication Message-ID: <20200609122944.GB6680@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TS2lcZuyPwZjLAUw" 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 --TS2lcZuyPwZjLAUw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Chris Stephens (cstephens16@gmail.com) wrote: > yes, shortly after i sent this out to the list, one of our security > administrators suggested ldapscheme. I just tested and ldapurl works as > well. >=20 > the security admin explained it like this: >=20 > "since we are using port 636 I know that it needs the TLS connection in > place before LDAP commands. starttls does the opposite. allows an LDAP > connection to "upgrade" to TLS. so the previous errors were simply it > unable to connect to server." >=20 > i'm guessing information like that doesn't belong in postgresql > documentation but it would have been useful yesterday. :) Might be interesting to know if the security administrator also understands that the way ldap-based auth works (at least in PG) is that the user's password is sent to the PG server where it could potentially be hijacked if the PG server is compromised.. If you're in an active directory environment, you really should be using the 'gss' method instead, which is Kerberos underneath and avoids that issue. > thanks for the response! i just recently made the switch to postgresql > after 20 years of mainly Oracle. during that time, the oracle-l mailing > list was invaluable as a learning tool and as a way to get help > when needed. it's great to know there's a similar mailing list in the > postgresql community! You're certainly welcome here! One thing to mention is that, as you may have noticed, we communicate on these lists by responding in-line rather than 'top-posting', since it makes things easier for everyone else on the list to follow. Thanks, and welcome! Stephen --TS2lcZuyPwZjLAUw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJe34C4AAoJEO1sijiDR2RVKW0P/1fAVnY4sG+MlFyXsRN2dPJ/ qqC1m98hxwPMIG8Ocb1Yqh4Dp06djFvTHMkc8JwVyBcuumCGbCAeav/3w1C0Ml3G FgUEoiNTnuXXMs6zycZ6BZrOwinDBQcHEVV4AMwL5iXqPeheOq9qVMy6UjpU4lf1 jgCHmGOaJA2lnhorMYS6qqgernft8p/4jwFxDUlTARyNbH16GtIU6dr8Ag7ZVyD+ 4jdEi8r6EUxr+mR+sS1kdDP85SqhIiI2Q6QgJudmcfKNrF33FvMYROY7e/uf3QmF oFGT7D590RlJy+BogLIuAXqqFq974XfMqLGohgRaYNt6LDjPlLXnCv5ggGU4SF64 2EJXGM/PiInxpe6Ikh22eGPRf/zepm8RQkSZSOd1vLdWCePNS+UPkrl3l1lS0cdR ZiPLaMs1i5YiezO21eQtfM/LOEr8UEZ3wiwie+yjmO2LJbiLB9DngiNZWcfQa/uZ iVbmlr/DasUFPXLpRlXTBb/wdqBEJ7Ep/YuLh7urBgGRF0WgYoQKf/MS77oeDYcZ Ol7tiP5eOCSSp66xHW+JZFDyuccbrkWcOFhU7h64Mt4HyVd3Gba5Xe0MkYWkLqrR TxBAN/aoDfXn17bznryJR2I3PMUesQSvFtiZpgIQHeYfNyiHm1oLiz0h/eq4OLxd hHsqjKTpTh+J6m7WjTMb =yZOu -----END PGP SIGNATURE----- --TS2lcZuyPwZjLAUw--