d7f0b58 sudo: respect case sensitivity in sudo responder

1 file Authored by pbrezina 5 years ago, Committed by jhrozek 5 years ago,
    sudo: respect case sensitivity in sudo responder
    
    If the domain is not case sensitive and the case of the original user
    or group name differs from the name in the rule we failed to find the
    rule.
    
    Now we filter the rule only with lower cased values in such domain.
    
    Steps to reproduce:
    1. Add user/group with upper case, e.g. USER-1
    2. Add sudo rule with lower cased name, e.g. sudoUser: user-1
    3. Login to system with lower case, e.g. user-1
    4. Run sudo -l
    
    Without the patch, rule is not found.
    
    Resolves:
    https://pagure.io/SSSD/sssd/issue/3820
    
    Reviewed-by: Michal Židek <mzidek@redhat.com>
    
        
file modified
+14 -3