diff options
author | Simo Sorce <simo@redhat.com> | 2016-01-08 17:51:06 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-06-29 21:46:03 +0200 |
commit | 4f3a9d837a55b49448eca3c713c85a406207e523 (patch) | |
tree | cf983b0fac5ddbc39ca259306342a0c05245168c /src/responder/pac/pacsrv.c | |
parent | 9a6d162cacfaf6946a1bf974b80b643d2a052d7a (diff) | |
download | sssd-4f3a9d837a55b49448eca3c713c85a406207e523.tar.gz sssd-4f3a9d837a55b49448eca3c713c85a406207e523.tar.xz sssd-4f3a9d837a55b49448eca3c713c85a406207e523.zip |
Responders: Make the client context more generic
This is useufl to allow reusing the responder code with other protocols.
Store protocol data and responder state data behind opaque pointers and
use tallog_get_type to check they are of the right type.
This also allows to store per responder state_ctx so that, for example,
the autofs responder does not have to carry useless variables used only
by the nss responder.
Resolves:
https://fedorahosted.org/sssd/ticket/2918
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/responder/pac/pacsrv.c')
-rw-r--r-- | src/responder/pac/pacsrv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/responder/pac/pacsrv.c b/src/responder/pac/pacsrv.c index 8e919780a..15d1986f8 100644 --- a/src/responder/pac/pacsrv.c +++ b/src/responder/pac/pacsrv.c @@ -123,6 +123,7 @@ int pac_process_init(TALLOC_CTX *mem_ctx, PAC_SBUS_SERVICE_VERSION, &monitor_pac_methods, "PAC", &pac_dp_methods.vtable, + sss_connection_setup, &rctx); if (ret != EOK) { DEBUG(SSSDBG_FATAL_FAILURE, "sss_process_init() failed\n"); |