Re: pgsql: Allow ldaps when using ldap authentication

2018-01-04 Thread Peter Eisentraut
On 1/3/18 16:24, Thomas Munro wrote: > Windows documentation talks about LDAP_SSL_PORT instead. I assume > that "Vista Ultimate 6.0.6000 MSVC 2005 Pro 8.0.50727.867" doesn't > define LDAPS_PORT, but some later version added it for compatibility > with OpenLDAP. Let's just define it ourselves if i

Re: pgsql: Allow ldaps when using ldap authentication

2018-01-03 Thread Thomas Munro
On Thu, Jan 4, 2018 at 9:07 AM, Thomas Munro wrote: > On Thu, Jan 4, 2018 at 4:14 AM, Peter Eisentraut wrote: >> Allow ldaps when using ldap authentication > > Other Windows systems seem OK with this, but baiji said: > > .\src\backend\libpq\auth.c(2538): error C2065: 'LDAPS_PORT' : > undeclared i

Re: pgsql: Allow ldaps when using ldap authentication

2018-01-03 Thread Thomas Munro
On Thu, Jan 4, 2018 at 4:14 AM, Peter Eisentraut wrote: > Allow ldaps when using ldap authentication Other Windows systems seem OK with this, but baiji said: .\src\backend\libpq\auth.c(2538): error C2065: 'LDAPS_PORT' : undeclared identifier Checking where that's supposed to come from... -- T

pgsql: Allow ldaps when using ldap authentication

2018-01-03 Thread Peter Eisentraut
Allow ldaps when using ldap authentication While ldaptls=1 provides an RFC 4513 conforming way to do LDAP authentication with TLS encryption, there was an earlier de facto standard way to do LDAP over SSL called LDAPS. Even though it's not enshrined in a standard, it's still widely used and somet