summaryrefslogtreecommitdiffstats
path: root/src/providers/ad/ad_init.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-12-03 20:45:44 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-12-19 17:39:56 +0100
commit72ae534f5aef6d2e5d3f2f51299aede5abf9687e (patch)
treef95e390ebd6e674415418a127a7fbed0542ffdbb /src/providers/ad/ad_init.c
parent008e1ee835602023891ac45408483d87f41e4d5c (diff)
downloadsssd-72ae534f5aef6d2e5d3f2f51299aede5abf9687e.tar.gz
sssd-72ae534f5aef6d2e5d3f2f51299aede5abf9687e.tar.xz
sssd-72ae534f5aef6d2e5d3f2f51299aede5abf9687e.zip
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.
Diffstat (limited to 'src/providers/ad/ad_init.c')
-rw-r--r--src/providers/ad/ad_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c
index 332bfda38..ed69a7d98 100644
--- a/src/providers/ad/ad_init.c
+++ b/src/providers/ad/ad_init.c
@@ -377,8 +377,7 @@ sssm_ad_access_init(struct be_ctx *bectx,
if (ret != EOK) {
goto fail;
}
- access_ctx->ldap_ctx = ad_id_ctx->ldap_ctx;
- access_ctx->gc_ctx = ad_id_ctx->gc_ctx;
+ access_ctx->ad_id_ctx = ad_id_ctx;
ret = dp_copy_options(access_ctx, ad_options->basic, AD_OPTS_BASIC,
&access_ctx->ad_options);