pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Diego <mrstephenamell@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: pg_hba & ldap
Date: Tue, 22 Oct 2019 08:43:34 -0400
Message-ID: <20191022124334.GX6962@tamriel.snowman.net> (raw)
In-Reply-To: <a84125da-a2ee-b5ed-3a9b-4325398b822f@gmail.com>
References: <eeab13dc-6e51-cb18-c0ec-461025d34573@gmail.com>
	<a84125da-a2ee-b5ed-3a9b-4325398b822f@gmail.com>

Greetings,

* Diego (mrstephenamell@gmail.com) wrote:
> I have a problem with ldap authentication, I have a ldap string like this:
> 
> host all             all             0.0.0.0/0 ldap ldapserver="10.20.90.251
> 10.20.90.252 10.10.90.251 10.10.90.252" ldapport=389...
> 
> It is correct? if the firs server is down, pg will go to the next one to
> continue authenticating?

Yes, that looks like it should work- is it not?

> It's a pg11 and ldap is an ipa server

Note that with an IPA setup, similar to if you were running Active
Directory, you have Kerberos and a KDC available, which is a much better
authentication mechanism that removes the need for the database sever to
reach out to another system to handle the authentication, and avoids
having the user's password sent to the database server.  You might want
to consider using that (which is called 'gssapi' in PostgreSQL, which is
basically generalized Kerberos) instead of LDAP.

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (2+ messages)

Message-ID: <20191022124334.GX6962@tamriel.snowman.net>
Permalink:  ../20191022124334.GX6962@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20191022124334.GX6962@tamriel.snowman.net

 · 

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: sfrost@snowman.net, mrstephenamell@gmail.com
  Subject: Re: pg_hba & ldap
  In-Reply-To: <20191022124334.GX6962@tamriel.snowman.net>
  References: <eeab13dc-6e51-cb18-c0ec-461025d34573@gmail.com> <a84125da-a2ee-b5ed-3a9b-4325398b822f@gmail.com> <20191022124334.GX6962@tamriel.snowman.net>

* 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