LDAP servers have sizelimit configuration to limit the number of
user/group objects that can be returned for an LDAP query. This
change catches the size limit exceeded exception when users/groups
returned from ldap search query exceeds the configured limit and
responds with an appropriate error message instead of default
500 error message.
Change-Id: I9949bb7d458b4b037616c701e0e4d362bfa36473
Closes-Bug: #1712415
(cherry picked from commit f776fc18383fcfdc97932eaaab261a0b85e0ef68)
Reviewed: https:/ /review. openstack. org/514885 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=d07677aba54 362a4a3aa2d165b 155105ffe30d73
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit d07677aba54362a 4a3aa2d165b1551 05ffe30d73
Author: prashkre <email address hidden>
Date: Fri Oct 13 17:31:39 2017 +0530
Handle ldap size limit exeeded exception
LDAP servers have sizelimit configuration to limit the number of
user/group objects that can be returned for an LDAP query. This
change catches the size limit exceeded exception when users/groups
returned from ldap search query exceeds the configured limit and
responds with an appropriate error message instead of default
500 error message.
Change-Id: I9949bb7d458b4b 037616c701e0e4d 362bfa36473 c97932eaaab261a 0b85e0ef68)
Closes-Bug: #1712415
(cherry picked from commit f776fc18383fcfd