On Tue, Aug 7, 2018 at 8:04 AM Sumit Bose <sbose(a)redhat.com> wrote:
On Mon, Jul 23, 2018 at 10:01:26AM +0200, Jakub Hrozek wrote:
> Unfortunately these tests don’t have an option to raise the debug level so stepping
throught them with gdb is the only option I’m afraid..
I think I didn't properly mock sss_nss_make_request_timeout() here.
Instead of the provided call which just mock the results the original
one is used which tries to talk to SSSD which either does not run or
does not know about the test user, hence the return code 0x02 (ENOENT).
If you run the test with strace you should see that the test program
tries to connect to /var/lib/sss/pipes/nss which is not expected. I'll
try to fix this.
Indeed it does try that connect a few times:
11933 connect(3, {sa_family=AF_UNIX,
sun_path="/var/lib/sss/pipes/nss"}, 110) = -1 ENOENT (No such file or
directory)
But something is still unexplained: the same test works just fine in
debian, and doesn't try to connect to that socket.
I might try updating nss. I have 3.36, and debian has 3.38.
Thanks!