pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael.Haertel@t-systems.com
To: pgsql-admin@postgresql.org
Subject: LDAP authentication failes with more than one entry returned
Date: Thu, 17 Aug 2017 13:58:32 +0000
Message-ID: <56022b23f1d5415cb99d16d824fe7935@HE101867.emea1.cds.t-internal.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Hello list,

I configured postgreSQL to only allow users that are administered in LDAP to connect to one particular database on my PostgreSQL host. This works fine as long as only one entry is returned for the combination of "ldapbasedn" and "ldapsearchattribute".

I currently match the LDAP attribute UID against the login name. Problem is that the users exist several times in the specified (sub-) directory tree. Everything works if the user only exists once within the specified "ldapbasedn".

How to deal with that problem?

I think it is common practice to have several sub-trees, one per organizational unit for example. Within that OU there are several sub-trees that define privileges for SAMBA shares, database connections or other purposes. Because I need to search for the users across several OUs, I can't give the path to only one sub-tree.

I am currently on windows so I can't test the ldapurl feature.

Would it be possible to use the ldapurl directive to allow an ldapsearch across different 1st level trees but only look for users within one particular sub-tree in each of the 1st level trees?

Thank you very much for your comments,

Michael Härtel

view thread (2+ messages)  latest in thread

Message-ID: <56022b23f1d5415cb99d16d824fe7935@HE101867.emea1.cds.t-internal.com>
Permalink:  ../56022b23f1d5415cb99d16d824fe7935@HE101867.emea1.cds.t-internal.com/
Also on:    postgresql.org/message-id/56022b23f1d5415cb99d16d824fe7935@HE101867.emea1.cds.t-internal.com

 · 

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-admin@postgresql.org
  Cc: Michael.Haertel@t-systems.com
  Subject: Re: LDAP authentication failes with more than one entry returned
  In-Reply-To: <56022b23f1d5415cb99d16d824fe7935@HE101867.emea1.cds.t-internal.com>
  References: <56022b23f1d5415cb99d16d824fe7935@HE101867.emea1.cds.t-internal.com>

* 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