[sssd PR#881][opened] 1.16: ifp: let cache_req parse input name so it can fallback to upn search
by pbrezina
URL: https://github.com/SSSD/sssd/pull/881
Author: pbrezina
Title: #881: 1.16: ifp: let cache_req parse input name so it can fallback to upn search
Action: opened
PR body:
"""
UPN search expects that the input name is in its fully qualified form.
However, GetUserAttr calls cache_req with unqualified username therefore it
never fallback to UPN search.
Steps to reproduce: 1. Configure SSSD against AD 2. Set UPN to
`TestUserUPN(a)ad.vm` 3. Run:
``` dbus-send --print-reply --system --dest=org.freedesktop.sssd.infopipe
/org/freedesktop/sssd/infopipe org.freedesktop.sssd.infopipe.GetUserAttr
string:TestUserUPN@ad.vm array:string:name Error sbus.Error.NotFound: No
such file or directory
```
Resolves: https://pagure.io/SSSD/sssd/issue/4065
Added also one patch to fix issue I found. In case of error we did not call
`tevent_req_post`. This was also in the original code and I missed it there.
"""
To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/881/head:pr881
git checkout pr881
4 years, 7 months