1f33147 sssd_client: add mutex protected call to the PAC responder

7 files Authored by sbose 6 years ago, Committed by lslebodn 6 years ago,
    sssd_client: add mutex protected call to the PAC responder
    
    SSSD's plugin for MIT Kerberos to send the PAC to the PAC responder
    currently uses sss_pac_make_request() which does not protect the
    communication with the PAC responder with a mutex as e.g. the NSS and
    PAM clients.
    
    If an application using threads loads this plugin via libkrb5 in
    different threads and is heavily processing Kerberos tickets with PACs
    chances are that two threads try to communicate with SSSD at once. In
    this case one of the threads will miss a reply and will wait for it
    until the default client timeout of 300s is passed.
    
    This patch adds a call which uses a mutex to protect the communication
    which will avoid the 300s delay mentioned above.
    
    Resolves:
    https://pagure.io/SSSD/sssd/issue/3518
    
    Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
    Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
    
        
file modified
+16 -0
file modified
+30 -0
file modified
+7 -0
file modified
+2 -2
file modified
+1 -0