]> granicus.if.org Git - postgresql/commit
Define LDAPS_PORT if it's missing and disable implicit LDAPS on Windows
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 4 Jan 2018 15:34:41 +0000 (10:34 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 4 Jan 2018 15:34:41 +0000 (10:34 -0500)
commit3ad2afc2e98fc85d5cf9529d84265b70acc0b13d
treecdde1d660668ddf6170a6e78746b4254cc115a42
parentc759395617765c5bc21db149cf8c3df52f41ccff
Define LDAPS_PORT if it's missing and disable implicit LDAPS on Windows

Some versions of Windows don't define LDAPS_PORT.

Also, Windows' ldap_sslinit() is documented to use LDAPS even if you
said secure=0 when the port number happens to be 636 or 3269.  Let's
avoid using the port number to imply that you want LDAPS, so that
connection strings have the same meaning on Windows and Unix.

Author: Thomas Munro
Discussion: https://postgr.es/m/CAEepm%3D23B7GV4AUz3MYH1TKpTv030VHxD2Sn%2BLYWDv8d-qWxww%40mail.gmail.com
src/backend/libpq/auth.c