pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Tauno Williams <awilliam@whitemice.org>
To: pgsql-general@lists.postgresql.org
Subject: Re: Secured ldap connectivity between PostgreSQL and LDAPs server
Date: Fri, 08 Dec 2017 08:56:25 -0500
Message-ID: <1512741385.4225.6.camel@whitemice.org> (raw)
In-Reply-To: <CA+RSxMi9RRJ4p_yJ=1PBFcCZMUpbo+JT4Ww4xtfDF5WkAvmWzA@mail.gmail.com>
References: <CA+RSxMi9RRJ4p_yJ=1PBFcCZMUpbo+JT4Ww4xtfDF5WkAvmWzA@mail.gmail.com>

On Fri, 2017-12-08 at 07:40 -0500, chiru r wrote:
> We are using LDAP authentication for authenticating users in
> PostgreSQL on Linux server and we are able to authenticate
> successfully. 

Then one presumes you are using PAM (?) for password authentication -
this question is really about pam_ldap, it is not specific to
PostgreSQL in any way.  

> Please help me i have couple of  questions to configuring LDAPS. 
> 1. Which location we need to keep the LDAPs Certificate files in
> PostgreSQL Linux server ?.
> 2. Do we need to change any configuration file for certificate
> references on Linux server ? .

The server should be configured to recognize certificates signed by
whatever authority you are using - where they go to do that depends on
your distribution.  Usually that involves putting the signing
certificate somewhere like /usr/share/pki/ca-trust-source/anchors/ and
running "update-ca-trust".  If your server already recognizes your CA
you don't need to do anything other than changing PAM to use LDAPS.

> 2. What need to be changed in Postgresql.conf file and pg_hba.conf
> file ? 

Nothing, PostgreSQL just calls the PAM library.  It does not care what
happens beneath that.

-- 
Meetings Coordinator, Michigan Association of Railroad Passengers
537 Shirley St NE Grand Rapids, MI 49503-1754 Phone: 616.581.8010
E-mail: awilliam@whitemice.org GPG#D95ED383 Web: http://www.marp.org




view thread (3+ messages)  latest in thread

Message-ID: <1512741385.4225.6.camel@whitemice.org>
Permalink:  ../1512741385.4225.6.camel@whitemice.org/
Also on:    postgresql.org/message-id/1512741385.4225.6.camel@whitemice.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: awilliam@whitemice.org
  Subject: Re: Secured ldap connectivity between PostgreSQL and LDAPs server
  In-Reply-To: <1512741385.4225.6.camel@whitemice.org>
  References: <CA+RSxMi9RRJ4p_yJ=1PBFcCZMUpbo+JT4Ww4xtfDF5WkAvmWzA@mail.gmail.com> <1512741385.4225.6.camel@whitemice.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox