Bug 1153131
Summary: | LDAP paged searches don't work with python-ldap 2.4 | |||
---|---|---|---|---|
Product: | [Community] RDO | Reporter: | Bruno Bompastor <b.bompastor> | |
Component: | openstack-keystone | Assignee: | Alan Pevec (Fedora) <apevec> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Udi Kalifon <ukalifon> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | unspecified | CC: | apevec, apevec, ayoung, b.bompastor, nkinder, yeylon | |
Target Milestone: | --- | |||
Target Release: | Juno | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1153695 (view as bug list) | Environment: | ||
Last Closed: | 2015-03-19 22:52:32 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1153695 |
Description
Bruno Bompastor
2014-10-15 16:26:27 UTC
What does your Keystone LDAP configuration look like? Also, what version of the 'openldap' package do you have installed? This is working for me on a fresh install using a domain specific LDAP backend for identity (assignment in SQL): [rhosuser@rhos ~]$ rpm -q openstack-keystone python-ldap openldap openstack-keystone-2014.2-0.6rc2.el7.centos.noarch python-ldap-2.4.6-6.el7.x86_64 openldap-2.4.39-3.el7.x86_64 [rhosuser@rhos ~(keystone_cloud_admin)]$ openstack user list --domain ipa +------------------------------------------------------------------+----------+ | ID | Name | +------------------------------------------------------------------+----------+ | 08c8bb1b1b8efa7abea9a8eb73784c59e6fbd7283e864d341aaea7d45b42814e | admin | | 1f94e7038ecd141dfe1656aa56d89779a27dd8b7a6aca4863860a1d58ac168ab | keystone | +------------------------------------------------------------------+----------+ Ok, so this is indeed a problem. Keystone needs some changes to allow it to work with the new way that paging works in python-ldap 2.4. An upstream bug was filed on this issue here: https://bugs.launchpad.net/keystone/+bug/1381768 A fix has been proposed for this upstream (in master): https://review.openstack.org/128782 There should not be a problem with backporting this to Juno once it's accepted for master. Great! Thanks. This never happened to me with the default LDAP configurations I've been using. How do I recreate this bug? Did it ever happen in a version that was delivered to QE? (In reply to Udi from comment #7) > This never happened to me with the default LDAP configurations I've been > using. How do I recreate this bug? Did it ever happen in a version that was > delivered to QE? Yes, it should exist in versions that QE have tested. You need to enable paging by setting 'page_size' to a value greater than '0' in the '[ldap]' section of keystone.conf and do an operation like 'keystone user-list' against an LDAP identity backend. To reproduce, this would need to be done on a system using python-ldap 2.4.x. |