|
|
ca1eb8 |
From 51354c3e23aa59d88e0340fb7cdbb9b7d4990743 Mon Sep 17 00:00:00 2001
|
|
|
ca1eb8 |
From: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
ca1eb8 |
Date: Mon, 25 Jun 2018 13:10:34 +0200
|
|
|
ca1eb8 |
Subject: [PATCH] IPA: Add the options that the IPA subdomains code will read
|
|
|
ca1eb8 |
for trusted domains on the client
|
|
|
ca1eb8 |
|
|
|
ca1eb8 |
With this patchset, IPA clients will read and evaluate the ad_server and
|
|
|
ca1eb8 |
ad_site options. This patch just adds the required structures for later
|
|
|
ca1eb8 |
usage.
|
|
|
ca1eb8 |
|
|
|
ca1eb8 |
Related:
|
|
|
ca1eb8 |
https://pagure.io/SSSD/sssd/issue/3291
|
|
|
ca1eb8 |
|
|
|
ca1eb8 |
Reviewed-by: Sumit Bose <sbose@redhat.com>
|
|
|
ca1eb8 |
(cherry picked from commit 1cce549e0f88f4873c320577d6213dcaeb08766f)
|
|
|
ca1eb8 |
---
|
|
|
ca1eb8 |
src/providers/ipa/ipa_common.h | 7 +++++++
|
|
|
ca1eb8 |
src/providers/ipa/ipa_opts.c | 6 ++++++
|
|
|
ca1eb8 |
src/providers/ipa/ipa_opts.h | 2 ++
|
|
|
ca1eb8 |
3 files changed, 15 insertions(+)
|
|
|
ca1eb8 |
|
|
|
ca1eb8 |
diff --git a/src/providers/ipa/ipa_common.h b/src/providers/ipa/ipa_common.h
|
|
|
ca1eb8 |
index 725e0e93728f7643bdf2220a4cb7ecfbbb8b958a..31e671eb50393f77225281226558d9848b3d3d78 100644
|
|
|
ca1eb8 |
--- a/src/providers/ipa/ipa_common.h
|
|
|
ca1eb8 |
+++ b/src/providers/ipa/ipa_common.h
|
|
|
ca1eb8 |
@@ -175,6 +175,13 @@ enum ipa_sudocmd_attrs {
|
|
|
ca1eb8 |
IPA_OPTS_SUDOCMD
|
|
|
ca1eb8 |
};
|
|
|
ca1eb8 |
|
|
|
ca1eb8 |
+enum ipa_cli_ad_subdom_attrs {
|
|
|
ca1eb8 |
+ IPA_CLI_AD_SERVER,
|
|
|
ca1eb8 |
+ IPA_CLI_AD_SITE,
|
|
|
ca1eb8 |
+
|
|
|
ca1eb8 |
+ IPA_OPTS_CLI_AD_SUBDOM
|
|
|
ca1eb8 |
+};
|
|
|
ca1eb8 |
+
|
|
|
ca1eb8 |
struct ipa_auth_ctx {
|
|
|
ca1eb8 |
struct krb5_ctx *krb5_auth_ctx;
|
|
|
ca1eb8 |
struct sdap_id_ctx *sdap_id_ctx;
|
|
|
ca1eb8 |
diff --git a/src/providers/ipa/ipa_opts.c b/src/providers/ipa/ipa_opts.c
|
|
|
ca1eb8 |
index 9419cdcc3913c58e2bcefe238b56fb75e8aa52ec..485ad4fe3ff9808343a94b1792f8c632a3d4b481 100644
|
|
|
ca1eb8 |
--- a/src/providers/ipa/ipa_opts.c
|
|
|
ca1eb8 |
+++ b/src/providers/ipa/ipa_opts.c
|
|
|
ca1eb8 |
@@ -389,3 +389,9 @@ struct sdap_attr_map ipa_sudocmd_map[] = {
|
|
|
ca1eb8 |
{ "ipa_sudocmd_memberof", "memberOf", SYSDB_MEMBEROF, NULL },
|
|
|
ca1eb8 |
SDAP_ATTR_MAP_TERMINATOR
|
|
|
ca1eb8 |
};
|
|
|
ca1eb8 |
+
|
|
|
ca1eb8 |
+struct dp_option ipa_cli_ad_subdom_opts [] = {
|
|
|
ca1eb8 |
+ { "ad_server", DP_OPT_STRING, NULL_STRING, NULL_STRING },
|
|
|
ca1eb8 |
+ { "ad_site", DP_OPT_STRING, NULL_STRING, NULL_STRING },
|
|
|
ca1eb8 |
+ DP_OPTION_TERMINATOR
|
|
|
ca1eb8 |
+};
|
|
|
ca1eb8 |
diff --git a/src/providers/ipa/ipa_opts.h b/src/providers/ipa/ipa_opts.h
|
|
|
ca1eb8 |
index 68326b8649a268232394a8fe970d932feb01d46e..378a9922c7b58fc4374262250efbd61b4b6a932f 100644
|
|
|
ca1eb8 |
--- a/src/providers/ipa/ipa_opts.h
|
|
|
ca1eb8 |
+++ b/src/providers/ipa/ipa_opts.h
|
|
|
ca1eb8 |
@@ -64,4 +64,6 @@ extern struct sdap_attr_map ipa_sudocmdgroup_map[];
|
|
|
ca1eb8 |
|
|
|
ca1eb8 |
extern struct sdap_attr_map ipa_sudocmd_map[];
|
|
|
ca1eb8 |
|
|
|
ca1eb8 |
+extern struct dp_option ipa_cli_ad_subdom_opts[];
|
|
|
ca1eb8 |
+
|
|
|
ca1eb8 |
#endif /* IPA_OPTS_H_ */
|
|
|
ca1eb8 |
--
|
|
|
ca1eb8 |
2.17.1
|
|
|
ca1eb8 |
|