Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 30015 invoked from network); 4 Apr 2007 23:09:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2007 23:09:29 -0000 Received: (qmail 15197 invoked by uid 500); 4 Apr 2007 23:09:36 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 15152 invoked by uid 500); 4 Apr 2007 23:09:36 -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 15141 invoked by uid 99); 4 Apr 2007 23:09:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 16:09:36 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 212.27.42.35 is neither permitted nor denied by domain of elecharny@gmail.com) Received: from [212.27.42.35] (HELO smtp5-g19.free.fr) (212.27.42.35) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 16:09:28 -0700 Received: from [192.168.0.1] (vol75-3-82-66-216-176.fbx.proxad.net [82.66.216.176]) by smtp5-g19.free.fr (Postfix) with ESMTP id 9A26942F74 for ; Thu, 5 Apr 2007 01:09:07 +0200 (CEST) Message-ID: <46143013.8030008@gmail.com> Date: Thu, 05 Apr 2007 01:09:07 +0200 From: Emmanuel Lecharny User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: fr, en MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [DAS OID GENERATION] Things that make you go hmmmm References: <46133AA1.9030905@gmail.com> <4613F8E5.3030303@gmail.com> <461419D4.70507@gmail.com> <4614281C.1010302@gmail.com> <46142ADF.9090109@gmail.com> <46142DD8.9000506@gmail.com> In-Reply-To: <46142DD8.9000506@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Ole Ersoy a �crit : > Ah - That throws a fork wrench in my current planning. > > Can we change the specification so that we can have characters :-) > > OK - that brings up a different more serious question then. > Does ADS have the ability to assign an OID, sort of like > automatic surrogate key generation in RDBs? > > For instance I may wish to store an attributeType with the > following description: > > "org.tuscany.das.ldap.config.DASConfig.baseDN" > > Can ApacheDS assign the OID, thus freeing the DAS of that responsibility? Nope... OIDs are supposed to be unique, worldwide ! This may looks like impossible to manage, but as you have you PEN, you can workaround this problem. Just store somwhere in the server the current number, or the last used number. You grab it, do your homework (insert your objects), and store the incremented number. Otherwise, it could be interesting to add a trigger in the server to auto-increment the OID after each insertion in a specific position (this is something possible : we support triggers) SO you have options, but we should discuss them. The best thing you can do is to assume that ADS can assign OIDs, whatever soltuion we will have to use to support this feature. Emmanuel ("If there is no solution, then the problem suddenly vanishes ...")