summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-11-23 20:47:59 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-11-24 21:11:21 +0100
commit1b2a9e3f17e54bcbe5c9bee82a91ae694b7ea0eb (patch)
tree133dff0a1d7944cf6bfccedd6ca625859fe813ea
parentae104bcbb705d3081a7a974342a237de8364d0b3 (diff)
downloadsssd-1b2a9e3f17e54bcbe5c9bee82a91ae694b7ea0eb.zip
sssd-1b2a9e3f17e54bcbe5c9bee82a91ae694b7ea0eb.tar.gz
sssd-1b2a9e3f17e54bcbe5c9bee82a91ae694b7ea0eb.tar.xz
IPA: Handle IPA groups returned from extop plugin
Reviewed-by: Sumit Bose <sbose@redhat.com>
-rw-r--r--src/providers/ipa/ipa_s2n_exop.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c
index 2c31120..0eab1af 100644
--- a/src/providers/ipa/ipa_s2n_exop.c
+++ b/src/providers/ipa/ipa_s2n_exop.c
@@ -960,10 +960,15 @@ static errno_t ipa_s2n_get_groups_step(struct tevent_req *req)
return ret;
}
- state->obj_domain = find_domain_by_name(parent_domain, domain_name, true);
- if (state->obj_domain == NULL) {
- DEBUG(SSSDBG_OP_FAILURE, "find_domain_by_name failed.\n");
- return ENOMEM;
+ if (domain_name) {
+ state->obj_domain = find_domain_by_name(parent_domain,
+ domain_name, true);
+ if (state->obj_domain == NULL) {
+ DEBUG(SSSDBG_OP_FAILURE, "find_domain_by_name failed.\n");
+ return ENOMEM;
+ }
+ } else {
+ state->obj_domain = parent_domain;
}
state->req_input.inp.name = group_name;