Re: BUG #7659: LDAP auth does not search the subtree

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Andrzej Cedro <andrzej(dot)cedro(at)wp(dot)pl>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7659: LDAP auth does not search the subtree
Date: 2013-05-28 12:57:44
Message-ID: 51A4A9C8.10206@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 5/21/13 2:54 AM, Andrzej Cedro wrote:
> I use PostgeSQL 9.1 32-bit on Windows 7 Professional with Active Directory as
> LDAP.
> I have following configration in pg_hba.conf:
>
> host all all all ldap ldapserver=192.168.155.157
> ldapbinddn="CN=aaaaaa,OU=bbbbb,DC=cccc,DC=dddd" ldapbindpasswd=******
> ldapbasedn="DC=cccc,DC=dddd" ldapsearchattribute=sAMAccountName
>
> Search is performed over the subtree at ldapbasedn, but is much more slower
> then search exactly on the same level as where the user resides. I think
> that search is performed on every database operation.

The search is only performed once when you log in.

In 9.3, we support LDAP URLs where you can specify the scope attribute
for the seach (base, one, sub), which could help you if the LDAP search
takes too long. But we don't support this as a separate parameter
outside of LDAP URLs. Maybe we should. (Note also that we don't
support LDAP URLs on Windows.)

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Amit Kapila 2013-05-28 12:59:29 Re: bug in Prepared statement with DELETE RETURNING and rule on view
Previous Message Himanshu Rana 2013-05-28 12:27:46 query regardinf pgadmin3