Re: Disable /Suppress hostname checks while secured LDAP - Mailing list pgsql-admin

From Stephen Frost
Subject Re: Disable /Suppress hostname checks while secured LDAP
Date
Msg-id 20180214142106.GA2416@tamriel.snowman.net
Whole thread Raw
In response to Disable /Suppress hostname checks while secured LDAP  (Sathesh S <sathesh.sundaram@hotmail.com>)
Responses Re: Disable /Suppress hostname checks while secured LDAP  (Sathesh S <sathesh.sundaram@hotmail.com>)
List pgsql-admin
Greetings,

* Sathesh S (sathesh.sundaram@hotmail.com) wrote:
> Is there a way to disable/suppress hostname checks in while using Secured LDAP in postgreSQL for authentication.
>
> The issue what we have is that the LDAP certificate what we are using is working for fully qualified named of the
domainbut not when we use a direct LDAP server in the pg_ba.conf file. 
>
> For example:
> This works - ldapserver="ldaps//dummy.company.com"
>
> This doesnt work - ldapserver="server1.dummy.company.com"
>
> Our internal LDAP team says that we nees to disable/suppress the hostname checking on the postgreSQL side for the 2nd
optionto work. 
>
> Does anyone have an idea on how we can suppress hostnames check while using Secured LDAP.

This really isn't recommended because the point of the hostname check is
to verify that you're actually talking to the server you intended to.

What LDAP server are you using though..?  If this is in an Active
Directory environment, or any environment where you have Kerberos
available, then you should be using Kerberos and *not* using LDAP (or
even LDAPS) for authentication as it isn't nearly as secure.

Thanks!

Stephen

Attachment

pgsql-admin by date:

Previous
From: pavan95
Date:
Subject: Re: Calculation of Database Size in postgres
Next
From: Stephen Frost
Date:
Subject: Re: Calculation of Database Size in postgres