summaryrefslogtreecommitdiffstats
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-14 11:20:23 +0100
commitaf71dfe79d773e5975a1489088c2b86d06e4b0af (patch)
treeb1aa0dd16ca4c66d2e1e5758a6099bbec9dc9ab3
parenta7a2839f8bbeec894a4e35031806f1702502e150 (diff)
downloadsssd-af71dfe79d773e5975a1489088c2b86d06e4b0af.tar.gz
sssd-af71dfe79d773e5975a1489088c2b86d06e4b0af.tar.xz
sssd-af71dfe79d773e5975a1489088c2b86d06e4b0af.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 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) {