#3996 sudo: do not update last usn when updating expired rules
Closed: Fixed by pbrezina. Opened by pbrezina.

Steps to reproduce:
1. Add new sudo rule (ruleA)
2. run sudo -l, see that command from ruleA is in the list
3. Wait for ruleA to expire (At this point the usn number ordering is ruleA < ruleB)
4. Add new sudo rule (ruleB)
5. Modify ruleA (At this point the usn number ordering changes to ruleB < ruleA)
6. Run sudo -l, see that ruleA was updated (thus lastusn = usn(ruleA)), ruleB is not present
7. Wait for smart refresh
8. Run sudo -l, see that ruleB is still not present because lastusn > usn(ruleB)

For testing purpose, one can use these settings:

ldap_sudo_smart_refresh_interval = 60
entry_cache_sudo_timeout = 0

Metadata Update from @atikhonov:
- Issue tagged with: PR, bug

PR: https://github.com/SSSD/sssd/pull/807

  • master
    • f9b589a47b0bacb1dcc4efd9b5d993c4b33b367f - sudo: do not update last usn value on rules refresh

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

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

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