Blame SOURCES/0107-IPA-Handle-IPA-groups-returned-from-extop-plugin.patch
|
|
905b4d |
From de740042c4a03f5683567939e73f6a8eb10f3ff1 Mon Sep 17 00:00:00 2001
|
|
|
905b4d |
From: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
905b4d |
Date: Sun, 23 Nov 2014 20:47:59 +0100
|
|
|
905b4d |
Subject: [PATCH 107/112] IPA: Handle IPA groups returned from extop plugin
|
|
|
905b4d |
|
|
|
905b4d |
Reviewed-by: Sumit Bose <sbose@redhat.com>
|
|
|
905b4d |
---
|
|
|
905b4d |
src/providers/ipa/ipa_s2n_exop.c | 13 +++++++++----
|
|
|
905b4d |
1 file changed, 9 insertions(+), 4 deletions(-)
|
|
|
905b4d |
|
|
|
905b4d |
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c
|
|
|
905b4d |
index 2c31120b196353df52c87ef5b924a80bda134a17..0eab1afc36e4d2c1d770c596c512a641fd276425 100644
|
|
|
905b4d |
--- a/src/providers/ipa/ipa_s2n_exop.c
|
|
|
905b4d |
+++ b/src/providers/ipa/ipa_s2n_exop.c
|
|
|
905b4d |
@@ -960,10 +960,15 @@ static errno_t ipa_s2n_get_groups_step(struct tevent_req *req)
|
|
|
905b4d |
return ret;
|
|
|
905b4d |
}
|
|
|
905b4d |
|
|
|
905b4d |
- state->obj_domain = find_domain_by_name(parent_domain, domain_name, true);
|
|
|
905b4d |
- if (state->obj_domain == NULL) {
|
|
|
905b4d |
- DEBUG(SSSDBG_OP_FAILURE, "find_domain_by_name failed.\n");
|
|
|
905b4d |
- return ENOMEM;
|
|
|
905b4d |
+ if (domain_name) {
|
|
|
905b4d |
+ state->obj_domain = find_domain_by_name(parent_domain,
|
|
|
905b4d |
+ domain_name, true);
|
|
|
905b4d |
+ if (state->obj_domain == NULL) {
|
|
|
905b4d |
+ DEBUG(SSSDBG_OP_FAILURE, "find_domain_by_name failed.\n");
|
|
|
905b4d |
+ return ENOMEM;
|
|
|
905b4d |
+ }
|
|
|
905b4d |
+ } else {
|
|
|
905b4d |
+ state->obj_domain = parent_domain;
|
|
|
905b4d |
}
|
|
|
905b4d |
|
|
|
905b4d |
state->req_input.inp.name = group_name;
|
|
|
905b4d |
--
|
|
|
905b4d |
1.9.3
|
|
|
905b4d |
|