From 1dced7370e55be16154bbb649606f928765819d0 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 3 Dec 2013 20:45:44 +0100 Subject: AD: Add a utility function to create list of connections ad_id.c and ad_access.c used the same block of code. With the upcoming option to disable GC lookups, we should unify the code in a function to avoid breaking one of the code paths. The same applies for the LDAP connection to the trusted AD DC. Includes a unit test. --- src/providers/ad/ad_access.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/providers/ad/ad_access.h') diff --git a/src/providers/ad/ad_access.h b/src/providers/ad/ad_access.h index ca5e69729..3bd19ccc5 100644 --- a/src/providers/ad/ad_access.h +++ b/src/providers/ad/ad_access.h @@ -26,9 +26,7 @@ struct ad_access_ctx { struct dp_option *ad_options; struct sdap_access_ctx *sdap_access_ctx; - - struct sdap_id_conn_ctx *ldap_ctx; - struct sdap_id_conn_ctx *gc_ctx; + struct ad_id_ctx *ad_id_ctx; }; void -- cgit