pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Emile Amewoto <emileam@yahoo.com>
Cc: Roger Tannous <roger.tannous@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: LDAP Authentication
Date: Thu, 24 Aug 2023 15:06:58 -0400
Message-ID: <ZOeqUuGbYOyA7KCy@tamriel.snowman.net> (raw)
In-Reply-To: <DED7ADEA-DEA4-4667-B3F7-EB5748E9A770@yahoo.com>
References: <CAJbSvLbjq0u=BkeQPM3=U1+OhhuhYnGnTDNPPmqKDSTOFTKafA@mail.gmail.com>
	<DED7ADEA-DEA4-4667-B3F7-EB5748E9A770@yahoo.com>

Greetings,

* Emile Amewoto (emileam@yahoo.com) wrote:
> Here is the high level  process:
> 1- Create the user x without password in Postgres.
> 2- Assign  role or roles to the user x
> 3- Update pg_hba.conf with the ldap connection link.
> 
> You might need cert for the ldap to connect to AD, assuming you are using AD.

If you're using AD, you should *really* be using Kerberos/gssapi for
your authentication and *not* LDAP.  LDAP is insecure as it involves
passing around the user's credentials which is extremely bad practice
and is strongly discouraged.  LDAP auth also involves in-line round
trips to the LDAP server which can delay or even fail database
connections in the event that the LDAP server is even temporarily
unavailable.

Thanks,

Stephen

Attachments:

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

view thread (30+ messages)  latest in thread

Message-ID: <ZOeqUuGbYOyA7KCy@tamriel.snowman.net>
Permalink:  ../ZOeqUuGbYOyA7KCy@tamriel.snowman.net/
Also on:    postgresql.org/message-id/ZOeqUuGbYOyA7KCy@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, emileam@yahoo.com, roger.tannous@gmail.com
  Subject: Re: LDAP Authentication
  In-Reply-To: <ZOeqUuGbYOyA7KCy@tamriel.snowman.net>
  References: <CAJbSvLbjq0u=BkeQPM3=U1+OhhuhYnGnTDNPPmqKDSTOFTKafA@mail.gmail.com> <DED7ADEA-DEA4-4667-B3F7-EB5748E9A770@yahoo.com> <ZOeqUuGbYOyA7KCy@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