summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa/ipa_subdomains_server.c
diff options
context:
space:
mode:
authorMichal Židek <mzidek@redhat.com>2017-03-28 18:33:46 +0200
committerJakub Hrozek <jhrozek@redhat.com>2017-03-29 14:00:17 +0200
commite0e038218580166648ac24f23180f0f4c2769d99 (patch)
tree7baed3cb25e46e007810dce2cedfa011500879e3 /src/providers/ipa/ipa_subdomains_server.c
parentf75ba99fc8dd64e45af2f642d9fb7660860fd28f (diff)
downloadsssd-e0e038218580166648ac24f23180f0f4c2769d99.tar.gz
sssd-e0e038218580166648ac24f23180f0f4c2769d99.tar.xz
sssd-e0e038218580166648ac24f23180f0f4c2769d99.zip
UTIL: Introduce subdomain_create_conf_path()
This is a utility function that replaces the create_subdom_conf_path(). Differently than the latter, it only takes one parameter and is going to be used in a few different places (thus adding it to util.h). Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukas Slebodnik <lslebodn@redhat.com>
Diffstat (limited to 'src/providers/ipa/ipa_subdomains_server.c')
-rw-r--r--src/providers/ipa/ipa_subdomains_server.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/providers/ipa/ipa_subdomains_server.c b/src/providers/ipa/ipa_subdomains_server.c
index ae3baf036..e8ee30392 100644
--- a/src/providers/ipa/ipa_subdomains_server.c
+++ b/src/providers/ipa/ipa_subdomains_server.c
@@ -176,9 +176,7 @@ static struct ad_options *ipa_ad_options_new(struct be_ctx *be_ctx,
forest_realm = subdom->forest_root->realm;
forest = subdom->forest_root->forest;
- subdom_conf_path = create_subdom_conf_path(id_ctx,
- be_ctx->conf_path,
- subdom->name);
+ subdom_conf_path = subdomain_create_conf_path(id_ctx, subdom);
if (subdom_conf_path == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, "subdom_conf_path failed\n");
return NULL;