Re: Disable /Suppress hostname checks while secured LDAP

From: Sathesh S <sathesh(dot)sundaram(at)hotmail(dot)com>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Disable /Suppress hostname checks while secured LDAP
Date: 2018-02-17 02:52:31
Message-ID: VI1PR10MB18531900B49FFA5AE310D2F282CA0@VI1PR10MB1853.EURPRD10.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks for the input Stephen, we are using active directory.

- Sathesh
________________________________
From: Stephen Frost <sfrost(at)snowman(dot)net>
Sent: Wednesday, February 14, 2018 7:51:06 PM
To: Sathesh S
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Disable /Suppress hostname checks while secured LDAP

Greetings,

* Sathesh S (sathesh(dot)sundaram(at)hotmail(dot)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 domain but 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 option to 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Iñigo Salvat 2018-02-17 07:34:41 Re: Migrate streaming replication 9.4 to 9.6
Previous Message John Scalia 2018-02-16 21:41:29 Re: How to move a postgres server