diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2012-02-07 07:01:20 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-24 14:58:26 -0500 |
commit | fdab7bbf8933351f6254438c30ff361cd748b15a (patch) | |
tree | f782a369096adae55d1d7776219414c4a4d309e5 /src/providers/ipa/ipa_hostid.c | |
parent | 2f3ee3f49019f5b60adbe073070f31e6e2d7c7ab (diff) | |
download | sssd-fdab7bbf8933351f6254438c30ff361cd748b15a.tar.gz sssd-fdab7bbf8933351f6254438c30ff361cd748b15a.tar.xz sssd-fdab7bbf8933351f6254438c30ff361cd748b15a.zip |
IPA hosts refactoring
Diffstat (limited to 'src/providers/ipa/ipa_hostid.c')
-rw-r--r-- | src/providers/ipa/ipa_hostid.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/providers/ipa/ipa_hostid.c b/src/providers/ipa/ipa_hostid.c index 873cc5296..6121f15a3 100644 --- a/src/providers/ipa/ipa_hostid.c +++ b/src/providers/ipa/ipa_hostid.c @@ -33,7 +33,6 @@ struct hosts_get_state { struct sysdb_ctx *sysdb; struct sss_domain_info *domain; const char *name; - const char **attrs; size_t count; struct sysdb_attrs **hosts; @@ -176,11 +175,6 @@ hosts_get_send(TALLOC_CTX *memctx, state->domain = ctx->be->domain; state->name = name; - /* TODO: handle attrs_type */ - ret = build_attrs_from_map(state, ctx->opts->host_map, - IPA_OPTS_HOST, &state->attrs); - if (ret != EOK) goto fail; - ret = hosts_get_retry(req); if (ret != EOK) { goto fail; @@ -220,7 +214,6 @@ hosts_get_connect_done(struct tevent_req *subreq) struct hosts_get_state); int dp_error = DP_ERR_FATAL; errno_t ret; - struct sdap_id_ctx *ctx = state->ctx->sdap_id_ctx; ret = sdap_id_op_connect_recv(subreq, &dp_error); talloc_zfree(subreq); @@ -233,9 +226,9 @@ hosts_get_connect_done(struct tevent_req *subreq) subreq = ipa_host_info_send(state, state->ev, state->sysdb, sdap_id_op_handle(state->op), - ctx->opts, state->name, - state->attrs, ctx->opts->host_map, - IPA_OPTS_HOST, false, + state->ctx->sdap_id_ctx->opts, state->name, + state->ctx->ipa_opts->host_map, + state->ctx->ipa_opts->hostgroup_map, state->ctx->host_search_bases); if (!subreq) { tevent_req_error(req, ENOMEM); |