URL:
https://github.com/SSSD/sssd/pull/103
Author: pbrezina
Title: #103: sudo: do not store usn if no rules are found
Action: opened
PR body:
"""
When ldap doesn't contain any sudorule during the initial full refresh,
usn is set to 1 instead of remaining unset and we are trying to
search modifyTimestamp>=1 during smart refresh which doesn't return any result
on openldap servers.
How to test:
Run sssd with no rules in ldap. Without the patch,
full refresh stores usn=1 and smart refresh run
search usn>=1. With this patch no usn is stored
and smart refresh run generic request without
usn part.
Resolves:
https://fedorahosted.org/sssd/ticket/3257
"""
To pull the PR as Git branch:
git remote add ghsssd
https://github.com/SSSD/sssd
git fetch ghsssd pull/103/head:pr103
git checkout pr103