From af71dfe79d773e5975a1489088c2b86d06e4b0af Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Thu, 8 Nov 2012 17:54:02 +0100 Subject: subdomains: check request type on one place only The check is now held only in ipa_get_subdomain_account_info_send(). --- src/providers/ipa/ipa_id.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/providers/ipa/ipa_id.c b/src/providers/ipa/ipa_id.c index 5f5286321..c74268b9a 100644 --- a/src/providers/ipa/ipa_id.c +++ b/src/providers/ipa/ipa_id.c @@ -78,12 +78,6 @@ void ipa_account_info_handler(struct be_req *breq) ar = talloc_get_type(breq->req_data, struct be_acct_req); if (strcasecmp(ar->domain, breq->be_ctx->domain->name) != 0) { - if (! ((ar->entry_type & BE_REQ_USER) || - (ar->entry_type & BE_REQ_GROUP))) { - return sdap_handler_done(breq, DP_ERR_FATAL, EINVAL, - "Invalid sub-domain request type"); - } - req = ipa_get_subdomain_account_info_send(breq, breq->be_ctx->ev, ctx, ar); if (!req) { -- cgit