diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-12-03 20:45:44 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-12-19 17:42:05 +0100 |
commit | 97d3ef21d9f293f0b4bc0cc38b37f4e3d54d3572 (patch) | |
tree | b2e97ab5ca1c1910edc2a91009bbee4639f6a8e7 /src/providers/ad/ad_common.h | |
parent | 4cd1cb275a09a188dce1eeccecc868a854a13b77 (diff) | |
download | sssd-97d3ef21d9f293f0b4bc0cc38b37f4e3d54d3572.tar.gz sssd-97d3ef21d9f293f0b4bc0cc38b37f4e3d54d3572.tar.xz sssd-97d3ef21d9f293f0b4bc0cc38b37f4e3d54d3572.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_common.h')
-rw-r--r-- | src/providers/ad/ad_common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/ad/ad_common.h b/src/providers/ad/ad_common.h index b8b73c042..ed5b8584d 100644 --- a/src/providers/ad/ad_common.h +++ b/src/providers/ad/ad_common.h @@ -115,6 +115,13 @@ ad_get_dyndns_options(struct be_ctx *be_ctx, struct ad_id_ctx * ad_id_ctx_init(struct ad_options *ad_opts, struct be_ctx *bectx); +struct sdap_id_conn_ctx ** +ad_gc_conn_list(TALLOC_CTX *mem_ctx, struct ad_id_ctx *ad_ctx, + struct sss_domain_info *dom); + +struct sdap_id_conn_ctx * +ad_get_dom_ldap_conn(struct ad_id_ctx *ad_ctx, struct sss_domain_info *dom); + /* AD dynamic DNS updates */ errno_t ad_dyndns_init(struct be_ctx *be_ctx, struct ad_options *ctx); |