From 89f1eab128a40231cc78a69fa8b140640b4b97b3 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 24 Apr 2013 11:08:21 +0200 Subject: [PATCH 11/12] Remove unused attribute list --- src/providers/ipa/ipa_id.h | 1 - src/providers/ipa/ipa_s2n_exop.c | 3 --- src/providers/ipa/ipa_subdomains_id.c | 11 +---------- 3 files changed, 1 insertions(+), 14 deletions(-) diff --git a/src/providers/ipa/ipa_id.h b/src/providers/ipa/ipa_id.h index 82f2f48..e446406 100644 --- a/src/providers/ipa/ipa_id.h +++ b/src/providers/ipa/ipa_id.h @@ -54,7 +54,6 @@ struct tevent_req *ipa_s2n_get_acct_info_send(TALLOC_CTX *mem_ctx, struct sdap_options *opts, struct sss_domain_info *dom, struct sdap_handle *sh, - const char **attrs, int entry_type, const char *user_name, uid_t uid); diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c index 64ee775..9421c86 100644 --- a/src/providers/ipa/ipa_s2n_exop.c +++ b/src/providers/ipa/ipa_s2n_exop.c @@ -511,7 +511,6 @@ struct ipa_s2n_get_user_state { struct sdap_options *opts; struct sss_domain_info *dom; struct sdap_handle *sh; - const char **expected_attrs; }; static void ipa_s2n_get_user_done(struct tevent_req *subreq); @@ -521,7 +520,6 @@ struct tevent_req *ipa_s2n_get_acct_info_send(TALLOC_CTX *mem_ctx, struct sdap_options *opts, struct sss_domain_info *dom, struct sdap_handle *sh, - const char **attrs, int entry_type, const char *name, uint32_t id) @@ -547,7 +545,6 @@ struct tevent_req *ipa_s2n_get_acct_info_send(TALLOC_CTX *mem_ctx, state->opts = opts; state->dom = dom; state->sh = sh; - state->expected_attrs = attrs; ret = s2n_encode_request(state, dom->name, entry_type, name, id, &bv_req); if (ret != EOK) { diff --git a/src/providers/ipa/ipa_subdomains_id.c b/src/providers/ipa/ipa_subdomains_id.c index 264eb03..9c4187b 100644 --- a/src/providers/ipa/ipa_subdomains_id.c +++ b/src/providers/ipa/ipa_subdomains_id.c @@ -43,8 +43,6 @@ struct ipa_get_subdom_acct { const char *filter; int filter_type; - const char **attrs; - int dp_error; }; @@ -92,14 +90,8 @@ struct tevent_req *ipa_get_subdom_acct_send(TALLOC_CTX *memctx, switch (state->entry_type) { case BE_REQ_USER: - ret = build_attrs_from_map(state, ctx->opts->user_map, - SDAP_OPTS_USER, NULL, - &state->attrs, NULL); - break; case BE_REQ_GROUP: - ret = build_attrs_from_map(state, ctx->opts->group_map, - SDAP_OPTS_GROUP, NULL, - &state->attrs, NULL); + ret = EOK; break; case BE_REQ_INITGROUPS: ret = ENOTSUP; @@ -173,7 +165,6 @@ static void ipa_get_subdom_acct_connected(struct tevent_req *subreq) state->ctx->opts, state->domain, sdap_id_op_handle(state->op), - state->attrs, state->entry_type, name, id); if (!subreq) { -- 1.7.7.6