dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0027-IPA-Add-the-options-that-the-IPA-subdomains-code-wil.patch

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