Bug 1883340 - Unable to disable LDAP paging using Active Directory
Summary: Unable to disable LDAP paging using Active Directory
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-keystone
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: async
: 16.1 (Train on RHEL 8.2)
Assignee: Lance Bragstad
QA Contact: Jeremy Agee
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-28 20:33 UTC by Raildo Mascena de Sousa Filho
Modified: 2022-08-11 18:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-11 18:50:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1896121 0 None None None 2020-09-28 20:34:25 UTC
Red Hat Issue Tracker OSP-260 0 None None None 2022-03-10 23:43:29 UTC

Description Raildo Mascena de Sousa Filho 2020-09-28 20:33:01 UTC
Description of problem:

Keystone provides a configuration option that allows users to page LDAP responses [0].

You can disable paging by setting page_size to 0, which should return all query data from LDAP in a single response.

I have an AD server with 10,000 users and I have paging set to 1,000. I am able to list users and verified paging is actually working.

If I disable paging by setting it to 0, the request errors:

2020-09-17 21:03:46.836 45 ERROR keystone.server.flask.application raise exception.LDAPSizeLimitExceeded()
2020-09-17 21:03:46.836 45 ERROR keystone.server.flask.application keystone.exception.LDAPSizeLimitExceeded: Number of User/Group entities returned by LDAP exceeded size limit. Contact your LDAP administrator.

However, if I set page_size to 100000, the request succeeds, even though I'm requesting all 10,000 users with page sizes of 100000.

I would expect to be able to disable paging without seeing the error since I'm able to request all LDAP users with huge page sizes.

[0] https://docs.openstack.org/keystone/latest/configuration/config-options.html#ldap.page_size

Version-Release number of selected component (if applicable):
OSP16.1


How reproducible:


Steps to Reproduce:
1. Configure Active Directory as the LDAP backend on Keystone
2. Configure ldap.page_size=0 (which means that the paging are disabled)
3.

Actual results:
2020-09-17 21:03:46.836 45 ERROR keystone.server.flask.application raise exception.LDAPSizeLimitExceeded()
2020-09-17 21:03:46.836 45 ERROR keystone.server.flask.application keystone.exception.LDAPSizeLimitExceeded: Number of User/Group entities returned by LDAP exceeded size limit. Contact your LDAP administrator.

Expected results: Paging is disabled for Active Directory when you're using it as LDAP backend on Keystone


Additional info:


Note You need to log in before you can comment on or make changes to this bug.