Lines Matching refs:sbus_req
107 int ifp_groups_find_by_name(struct sbus_request *sbus_req,
120 req = cache_req_group_by_name_send(sbus_req, ctx->rctx->ev, ctx->rctx,
126 tevent_req_set_callback(req, ifp_groups_find_by_name_done, sbus_req);
135 struct sbus_request *sbus_req;
141 sbus_req = tevent_req_callback_data(req, struct sbus_request);
143 ret = cache_req_group_by_name_recv(sbus_req, req, &result, &domain, NULL);
146 error = sbus_error_new(sbus_req, SBUS_ERROR_NOT_FOUND,
150 error = sbus_error_new(sbus_req, DBUS_ERROR_FAILED, "Failed to fetch "
155 object_path = ifp_groups_build_path_from_msg(sbus_req, domain,
158 error = sbus_error_new(sbus_req, SBUS_ERROR_INTERNAL,
167 sbus_request_fail_and_finish(sbus_req, error);
171 iface_ifp_groups_FindByName_finish(sbus_req, object_path);
177 int ifp_groups_find_by_id(struct sbus_request *sbus_req,
190 req = cache_req_group_by_id_send(sbus_req, ctx->rctx->ev, ctx->rctx,
196 tevent_req_set_callback(req, ifp_groups_find_by_id_done, sbus_req);
205 struct sbus_request *sbus_req;
211 sbus_req = tevent_req_callback_data(req, struct sbus_request);
213 ret = cache_req_group_by_id_recv(sbus_req, req, &result, &domain);
216 error = sbus_error_new(sbus_req, SBUS_ERROR_NOT_FOUND,
220 error = sbus_error_new(sbus_req, DBUS_ERROR_FAILED, "Failed to fetch "
225 object_path = ifp_groups_build_path_from_msg(sbus_req, domain,
228 error = sbus_error_new(sbus_req, SBUS_ERROR_INTERNAL,
235 sbus_request_fail_and_finish(sbus_req, error);
239 iface_ifp_groups_FindByID_finish(sbus_req, object_path);
247 int ifp_groups_list_by_name(struct sbus_request *sbus_req,
261 list_ctx = ifp_list_ctx_new(sbus_req, ctx, filter, limit);
291 struct sbus_request *sbus_req;
297 sbus_req = list_ctx->sbus_req;
299 ret = cache_req_group_by_name_recv(sbus_req, req, &result, &domain, NULL);
302 error = sbus_error_new(sbus_req, DBUS_ERROR_FAILED, "Failed to fetch "
304 sbus_request_fail_and_finish(sbus_req, error);
310 error = sbus_error_new(sbus_req, SBUS_ERROR_INTERNAL,
312 sbus_request_fail_and_finish(sbus_req, error);
323 error = sbus_error_new(sbus_req, SBUS_ERROR_INTERNAL,
325 sbus_request_fail_and_finish(sbus_req, error);
332 iface_ifp_groups_ListByDomainAndName_finish(list_ctx->sbus_req,
339 int ifp_groups_list_by_domain_and_name(struct sbus_request *sbus_req,
355 list_ctx = ifp_list_ctx_new(sbus_req, ctx, filter, limit);
375 struct sbus_request *sbus_req;
381 sbus_req = list_ctx->sbus_req;
383 ret = cache_req_user_by_name_recv(sbus_req, req, &result, &domain, NULL);
386 error = sbus_error_new(sbus_req, SBUS_ERROR_NOT_FOUND,
390 error = sbus_error_new(sbus_req, DBUS_ERROR_FAILED, "Failed to fetch "
397 error = sbus_error_new(sbus_req, SBUS_ERROR_INTERNAL,
404 sbus_request_fail_and_finish(sbus_req, error);
408 iface_ifp_groups_ListByDomainAndName_finish(sbus_req,
415 ifp_groups_group_get(struct sbus_request *sbus_req,
433 ret = ifp_groups_decompose_path(ctx->rctx->domains, sbus_req->path,
437 "[%s] [%d]: %s\n", sbus_req->path, ret, sss_strerror(ret));
442 ret = sysdb_getgrgid_with_views(sbus_req, domain, gid, &res);
471 struct sbus_request *sbus_req;
486 struct sbus_request *sbus_req,
512 state->sbus_req = sbus_req;
516 ret = ifp_groups_group_get(sbus_req, data, NULL, &domain, &group);
561 ret = ifp_groups_group_get(state->sbus_req, state->data, NULL,
655 int ifp_groups_group_update_member_list(struct sbus_request *sbus_req,
667 subreq = resolv_ghosts_send(sbus_req, ctx->rctx->ev, sbus_req, data);
673 sbus_req);
681 struct sbus_request *sbus_req;
684 sbus_req = tevent_req_callback_data(subreq, struct sbus_request);
689 error = sbus_error_new(sbus_req, DBUS_ERROR_FAILED,
692 sbus_request_fail_and_finish(sbus_req, error);
696 iface_ifp_groups_group_UpdateMemberList_finish(sbus_req);
700 void ifp_groups_group_get_name(struct sbus_request *sbus_req,
718 ret = ifp_groups_group_get(sbus_req, data, NULL, &domain, &msg);
731 *_out = ifp_format_name_attr(sbus_req, ifp_ctx, in_name, domain);
735 void ifp_groups_group_get_gid_number(struct sbus_request *sbus_req,
743 ret = ifp_groups_group_get(sbus_req, data, NULL, &domain, &msg);
754 void ifp_groups_group_get_unique_id(struct sbus_request *sbus_req,
762 ret = ifp_groups_group_get(sbus_req, data, NULL, &domain, &msg);
775 struct sbus_request *sbus_req,
802 ret = ifp_groups_group_get(sbus_req, data, NULL, &domain, &group);
898 void ifp_groups_group_get_users(struct sbus_request *sbus_req,
908 ret = ifp_groups_group_get_members(sbus_req, sbus_req, data, _out, _size,
915 void ifp_groups_group_get_groups(struct sbus_request *sbus_req,
925 ret = ifp_groups_group_get_members(sbus_req, sbus_req, data, NULL, NULL,
932 int ifp_cache_list_group(struct sbus_request *sbus_req,
935 return ifp_cache_list(sbus_req, data, IFP_CACHE_GROUP);
938 int ifp_cache_list_by_domain_group(struct sbus_request *sbus_req,
942 return ifp_cache_list_by_domain(sbus_req, data, domain, IFP_CACHE_GROUP);
945 int ifp_cache_object_store_group(struct sbus_request *sbus_req,
953 ret = ifp_groups_group_get(sbus_req, data, NULL, &domain, &group);
955 error = sbus_error_new(sbus_req, DBUS_ERROR_FAILED, "Failed to fetch "
957 return sbus_request_fail_and_finish(sbus_req, error);
961 return ifp_cache_object_store(sbus_req, domain, group->dn);
964 int ifp_cache_object_remove_group(struct sbus_request *sbus_req,
972 ret = ifp_groups_group_get(sbus_req, data, NULL, &domain, &group);
974 error = sbus_error_new(sbus_req, DBUS_ERROR_FAILED, "Failed to fetch "
976 return sbus_request_fail_and_finish(sbus_req, error);
980 return ifp_cache_object_remove(sbus_req, domain, group->dn);