#3592 Write a regression test for false possitive "corrupted" memory cache
Closed: Fixed 6 years ago Opened 6 years ago by lslebodn.

https://pagure.io/SSSD/sssd/issue/3571

  • get user1 to LDAP
  • start sssd
  • query getent passwd -s sss user1 (so we will be sure that user is in memory cache)
  • read seed and hash_size from header of memory cache (they are needed to calculation of hash
  • estimate length of entries stored in mmap cache for user1 (approximately getent passwd -s sss alcik | wc -c) But we can use hardcoded number e.g. 128
  • generate hash for "user1"
  • generate the same hash as in previous step from random ASCII string with length calculated in previous step (RANDOM_STRING)
  • add new user (RANDOM_SRING) into LDAP with random string generated in previous step.
  • query for newly added user getnet passwd -s sss $RANDOM_STRING
  • stop sssd
  • ensure that user1 and $RANDOM_STRING are properly stored in memory cache. (entries will be returned even though sssd is stopped)

Metadata Update from @jhrozek:
- Issue set to the milestone: SSSD 2.0

6 years ago

Metadata Update from @jhrozek:
- Issue priority set to: minor

6 years ago

Metadata Update from @lslebodn:
- Issue set to the milestone: SSSD 1.16.2 (was: SSSD 2.0)
- Issue tagged with: PR

6 years ago

Metadata Update from @lslebodn:
- Issue assigned to lslebodn

6 years ago

master:

gcc warning:

Metadata Update from @lslebodn:
- Issue close_status updated to: Fixed
- Issue set to the milestone: SSSD 1.16.1 (was: SSSD 1.16.2)
- Issue status updated to: Closed (was: Open)

6 years ago

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/4615

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.

Login to comment on this ticket.

Metadata