#2975 optimize the LDAP search filter when looking for a specific ID
Closed: cloned-to-github by pbrezina. Opened by jhrozek.

When we look for a specific ID, we make the filter rather complex:

(&(gidNumber=5000)(objectClass=posixGroup)(cn=*)(&(gidNumber=*)(!(gidNumber=0))))

Since we are already looking for the specific ID, we don't have to include the filter for the presence of gidNumber ((gidNumber=*)) or the filter for gidNumber being non-zero ((!(gidNumber=0))

However, when implememting this, we need to make sure the additional filters are present when looking up by name or when enumerating objects.


Moving to 1.15 as agreed on Mar-17 triage.

milestone: NEEDS_TRIAGE => SSSD 1.15 beta

Fields changed

rhbz: => 0

Metadata Update from @jhrozek:
- Issue set to the milestone: SSSD Future releases (no date set yet)

Metadata Update from @jhrozek:
- Custom field design_review reset (from 0)
- Custom field mark reset (from 0)
- Custom field patch reset (from 0)
- Custom field review reset (from 0)
- Custom field sensitive reset (from 0)
- Custom field testsupdated reset (from 0)
- Issue close_status updated to: None
- Issue tagged with: performance

Metadata Update from @thalman:
- Custom field design_review reset (from false)
- Custom field mark reset (from false)
- Custom field patch reset (from false)
- Custom field review reset (from false)
- Custom field sensitive reset (from false)
- Custom field testsupdated reset (from false)
- Issue tagged with: New hire task, Next milestone

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/4016

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @pbrezina:
- Issue close_status updated to: cloned-to-github
- Issue status updated to: Closed (was: Open)

Metadata