pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Allow custom search filters to be configured for LDAP auth
Date: Tue, 12 Sep 2017 13:51:45 +0000
Message-ID: <E1drlbN-0004OQ-Gp@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Allow custom search filters to be configured for LDAP auth

Before, only filters of the form "(<ldapsearchattribute>=<user>)"
could be used to search an LDAP server.  Introduce ldapsearchfilter
so that more general filters can be configured using patterns, like
"(|(uid=$username)(mail=$username))" and "(&(uid=$username)
(objectClass=posixAccount))".  Also allow search filters to be included
in an LDAP URL.

Author: Thomas Munro
Reviewed-By: Peter Eisentraut, Mark Cave-Ayland, Magnus Hagander
Discussion: https://postgr.es/m/CAEepm=0XTkYvMci0WRubZcf_1am8=gP=7oJErpsUfRYcKF2gwg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/83aaac41c66959a3ebaec7daadc4885b5f98f561

Modified Files
--------------
doc/src/sgml/client-auth.sgml | 43 +++++++++++++++++++++++++++++++++++----
src/backend/libpq/auth.c      | 44 ++++++++++++++++++++++++++++++++--------
src/backend/libpq/hba.c       | 47 +++++++++++++++++++++++++++++++------------
src/include/libpq/hba.h       |  1 +
4 files changed, 110 insertions(+), 25 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1drlbN-0004OQ-Gp@gemulon.postgresql.org>
Permalink:  ../E1drlbN-0004OQ-Gp@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1drlbN-0004OQ-Gp@gemulon.postgresql.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-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: Allow custom search filters to be configured for LDAP auth
  In-Reply-To: <E1drlbN-0004OQ-Gp@gemulon.postgresql.org>
  References: <E1drlbN-0004OQ-Gp@gemulon.postgresql.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