Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 2840 invoked from network); 3 Oct 2007 22:41:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2007 22:41:29 -0000 Received: (qmail 73502 invoked by uid 500); 3 Oct 2007 22:41:18 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 73464 invoked by uid 500); 3 Oct 2007 22:41:18 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 73453 invoked by uid 99); 3 Oct 2007 22:41:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 15:41:18 -0700 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=HTML_MESSAGE,SPF_PASS,SUBJECT_FUZZY_TION X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ickydude@gmail.com designates 209.85.128.186 as permitted sender) Received: from [209.85.128.186] (HELO fk-out-0910.google.com) (209.85.128.186) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 22:41:19 +0000 Received: by fk-out-0910.google.com with SMTP id z22so5195309fkz for ; Wed, 03 Oct 2007 15:40:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=Qjaywr75JKgH0IoJSdMljPxw4KDfB1HDDl/Cc+BHMNc=; b=biv70GQSdn1E3Im/LBHg2AMPmhrx/iUkgFdgi05G2AJZ844fDDHCaO46zJUcKL3cQNsZdllARQcF/IDInQTdlKDjO9NXPSF1t2dVmHHEVWlsDzo6JrAb2M6f/ADr1B1YSsFKWR4Jc71L3oNz5vZidQXxYU76/mmaIoNFyZ8PZ3I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=VLfLKVXANZ9wHyjfyL1aLr7bW2P9gibt46Y+RBQbnKS+KlxXrR0Y+3ABGKr3hIfNM/wJvDQZp6cgdX/U8F84k504Hc3w72rEiM3emW1lnNMRtyOEvYXOG1o1xKGmrg40Y4bgAbE1sj/g+A+8Yw+MNIZx364KOm93DDiq4bjaVAw= Received: by 10.82.138.6 with SMTP id l6mr14480985bud.1191451257742; Wed, 03 Oct 2007 15:40:57 -0700 (PDT) Received: by 10.82.122.16 with HTTP; Wed, 3 Oct 2007 15:40:57 -0700 (PDT) Message-ID: <478e164b0710031540j145d7f79k41ec9c2f0f38dc4@mail.gmail.com> Date: Wed, 3 Oct 2007 16:40:57 -0600 From: "Matt Peterson" To: dev@directory.apache.org Subject: Relationship of Interceptors and Partitions MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_25056_19765023.1191451257732" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_25056_19765023.1191451257732 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Greetings, I'm trying to write a custom partition that will be used as context partition, but I'd like to continue to use the Btree/Jdbm partition implementation for the system configuration partition. With a little trial and error (mostly errors), I've found out that several methods in the JdbmPartition (used by the system configuration partition partition) will not work unless preceeded by a corresponding "fix-ups" provided by the interceptors. For example, calls to to the methods in org.apache.directory.server.core.normalization.NormalizationService must be made, or BindDNs can not be resolved. Unfortunately, MyCustomPartition, doesn't like the way that LdapDNs, attributes and filters are normalized by org.apache.directory.server.core.normalization.NormalizationService. In other words, there appears to be more than at least one situation where a correlation between interceptors and partitions is necessary, but what we have (at least in Apache DS 1.0.x) is a design where all interceptors in the chain are called regardles of the partition that will eventually be invoked. To configure per-partition interception. Perhaps what I'm looking for is a way that I can insert my interceptor first in the chain and then optionally skip other interceptors if I encounter a DN or base that I know will invoke my partition? According to documentation for ApacheDS 1.0.x ( http://directory.apache.org/apacheds/1.0/interceptors.html) the Nexus is called by a "special interceptor" at the end of the chain. Therefore, it seems very difficult to skip interceptors in the chain without also elimintating the call to PartitionNexus ... I suppose my real question is why ApacheDS wasn't designed so that interceptors could (optionally) be configured for association only with a certain suffix or partition. This would allow the configuration flexibility that I would need -- to use both the JdbmPartition and my own customPartition without having to undo all of the normalization, schema, referral (,etc) stuff in my own customPartition that I didn't want done in the first place... Does this make any sense? -- Matt ------=_Part_25056_19765023.1191451257732 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Greetings,
 
I'm trying to write a custom partition that will be used as context partition, but I'd like to continue to use the Btree/Jdbm partition implementation for the system configuration partition.
 
With a little trial and error (mostly errors), I've found out that several methods in the JdbmPartition (used by the system configuration partition partition) will not work unless preceeded by a corresponding "fix-ups" provided by the interceptors.  For example, calls to to the methods in org.apache.directory.server.core.normalization.NormalizationService must be made, or BindDNs can not be resolved.  Unfortunately,  MyCustomPartition, doesn't like the way that LdapDNs, attributes and filters are normalized by org.apache.directory.server.core.normalization.NormalizationService. 
 
In other words, there appears to be more than at least one situation where a correlation between interceptors and partitions is necessary, but what we have (at least in Apache DS 1.0.x) is a design where all interceptors in the chain are called regardles of the partition that will eventually be invoked. To configure per-partition interception.
 
Perhaps what I'm looking for is a way that I can insert my interceptor first in the chain and then optionally skip other interceptors if I encounter a DN or base that I know will invoke my partition?  According to documentation for ApacheDS 1.0.x (http://directory.apache.org/apacheds/1.0/interceptors.html) the Nexus is called by a "special interceptor" at the end of the chain.  Therefore, it seems very difficult to skip interceptors in the chain without also elimintating the call to PartitionNexus ...
 
I suppose my real question is why ApacheDS wasn't designed so that interceptors could (optionally) be configured for association only with a certain suffix or partition.  This would allow the configuration flexibility that I would need -- to use both the JdbmPartition and my own customPartition without having to undo all of the normalization, schema, referral (,etc) stuff in my own customPartition that I didn't want done in the first place...
 
Does this make any sense?
 
--
Matt
 
 
 
------=_Part_25056_19765023.1191451257732--