summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa/ipa_views.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-09-23 13:13:37 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-10-16 17:56:14 +0200
commit9c8db0a17a66c58c36966b17d004142a4aaace8d (patch)
tree3ff36aa7a42a65c6fc4e35e7039294836e8208d6 /src/providers/ipa/ipa_views.c
parent9da27cbc7532f775afc411d809735760dd5294a7 (diff)
downloadsssd-9c8db0a17a66c58c36966b17d004142a4aaace8d.tar.gz
sssd-9c8db0a17a66c58c36966b17d004142a4aaace8d.tar.xz
sssd-9c8db0a17a66c58c36966b17d004142a4aaace8d.zip
views: get overrides during user and group lookups
With this patch the IPA provider will check if overrides exists for the given view during the lookup of users and groups from trusted domains. In ipa-server-mode the default view is automatically applied and written to the cache. On IPA clients which use the extdom plugin for user and group lookups the override data is saved separately and the original object and the override data are linked with DN attributes for faster reference. Related to https://fedorahosted.org/sssd/ticket/2375 Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/providers/ipa/ipa_views.c')
-rw-r--r--src/providers/ipa/ipa_views.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ipa/ipa_views.c b/src/providers/ipa/ipa_views.c
index 0b71ffc12..86b141110 100644
--- a/src/providers/ipa/ipa_views.c
+++ b/src/providers/ipa/ipa_views.c
@@ -191,8 +191,8 @@ static void ipa_get_ad_override_done(struct tevent_req *subreq)
struct ipa_get_ad_override_state *state = tevent_req_data(req,
struct ipa_get_ad_override_state);
int ret;
- size_t reply_count;
- struct sysdb_attrs **reply;
+ size_t reply_count = 0;
+ struct sysdb_attrs **reply = NULL;
ret = sdap_get_generic_recv(subreq, state, &reply_count, &reply);
talloc_zfree(subreq);