summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-11-08 17:54:02 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-11-12 15:11:45 +0100
commit97f3e4045717b64fb7ee6b5838305a76942facc4 (patch)
treebd4b307fee4d29c14514c282f9bf7ab477946f84
parent6c7584a32899bf573f62cf8c3fb37410a8ec05bb (diff)
downloadsssd-97f3e4045717b64fb7ee6b5838305a76942facc4.tar.gz
sssd-97f3e4045717b64fb7ee6b5838305a76942facc4.tar.bz2
sssd-97f3e4045717b64fb7ee6b5838305a76942facc4.zip
subdomains: check request type on one place only
The check is now held only in ipa_get_subdomain_account_info_send().
-rw-r--r--src/providers/ipa/ipa_id.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/providers/ipa/ipa_id.c b/src/providers/ipa/ipa_id.c
index 5f528632..c74268b9 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) {