diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-19 10:50:44 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-28 22:22:20 +0200 |
commit | f8a4a5f6240156809e1b5ef03816f673281e3fa0 (patch) | |
tree | 4963a9bbe4f56c50093df9f826fa7a268b6fd335 /src/providers/ipa/ipa_subdomains.h | |
parent | 59415636c92c6e9764ddc65a85ad61002310519d (diff) | |
download | sssd-f8a4a5f6240156809e1b5ef03816f673281e3fa0.tar.gz sssd-f8a4a5f6240156809e1b5ef03816f673281e3fa0.tar.bz2 sssd-f8a4a5f6240156809e1b5ef03816f673281e3fa0.zip |
IPA: Initialize server mode ctx if server mode is on
This patch introduces a new structure that holds information about a
subdomain and its ad_id_ctx. This structure will be used only in server
mode to make it possible to search subdomains with a particular
ad_id_ctx.
Subtask of:
https://fedorahosted.org/sssd/ticket/1962
Diffstat (limited to 'src/providers/ipa/ipa_subdomains.h')
-rw-r--r-- | src/providers/ipa/ipa_subdomains.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_subdomains.h b/src/providers/ipa/ipa_subdomains.h index c9ab82a2..315ce9e0 100644 --- a/src/providers/ipa/ipa_subdomains.h +++ b/src/providers/ipa/ipa_subdomains.h @@ -38,6 +38,24 @@ int ipa_subdom_init(struct be_ctx *be_ctx, struct bet_ops **ops, void **pvt_data); +/* The following are used in server mode only */ +struct ipa_ad_server_ctx { + struct sss_domain_info *dom; + struct ad_id_ctx *ad_id_ctx; + + struct ipa_ad_server_ctx *next, *prev; +}; + +struct ipa_server_mode_ctx { + const char *realm; + const char *hostname; + + struct ipa_ad_server_ctx *trusts; +}; + +int ipa_ad_subdom_init(struct be_ctx *be_ctx, + struct ipa_id_ctx *id_ctx); + enum req_input_type { REQ_INP_NAME, REQ_INP_ID, |