ldap user_filter is not honored while authenticating

Bug #1394083 reported by Anton Aksola
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Expired
Wishlist
Unassigned

Bug Description

When full LDAP logging is enabled, we can see that the inital LDAP search query does not use the user_filter while it tries to find the user DN from the LDAP.

This causes authentication to fail if we have two users with same name in the LDAP in the same tree but with different ids. We use memberOf filter to limit which users are seen by Keystone.

I traced the issue to keystone/common/ldap/core.py method get_by_name which only seems to filter by user name ignoring the filter set in the configuration.

Anton Aksola (aakso)
tags: added: ldap
Revision history for this message
Hong Hui Xiao (xiaohhui) wrote :

My understanding is that DN is unique. When I use Active Directory as my LDAP server, I can't create two users with same name in the same OU(Organizational Unit).
Maybe you need to find out why you will have two users with same name in the LDAP in the same tree but with different ids

Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → Wishlist
status: New → Triaged
Changed in keystone:
milestone: none → kilo-rc1
Changed in keystone:
milestone: kilo-rc1 → none
tags: added: ldap-legacy
Revision history for this message
Steve Martinelli (stevemar) wrote :

No activity on this bug for a long time, the question from comment #2 was never answered.

Changed in keystone:
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Identity (keystone) because there has been no activity for 60 days.]

Changed in keystone:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.