Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 41859 invoked from network); 10 Apr 2007 15:35:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2007 15:35:02 -0000 Received: (qmail 92902 invoked by uid 500); 10 Apr 2007 15:35:08 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 92875 invoked by uid 500); 10 Apr 2007 15:35:08 -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 92864 invoked by uid 99); 10 Apr 2007 15:35:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2007 08:35:08 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ole.ersoy@gmail.com designates 64.233.166.177 as permitted sender) Received: from [64.233.166.177] (HELO py-out-1112.google.com) (64.233.166.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2007 08:35:01 -0700 Received: by py-out-1112.google.com with SMTP id a29so1391222pyi for ; Tue, 10 Apr 2007 08:34:40 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=FnFQUZpjAXcCMQ5bMKYhNYQUTIpwceuDz4ma8SoiJrzn9SxFwB7VDVl+14MBJYWf2D91PYYXZAfGbWqyIzB+g1G+ht/BFm+NpiyHbBajeU4AWg95413GIsw7FnaQMym2DVnbTNVYimJGsYLgPoDAvtnVv9kMTwADV0lZawLQ3M4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=gIbDDo5nZ5aQZ2GJuVqCTjwts9lAPDaUZWFgLLO7k1f/GxClfwQG7m7Bd7sDdCKcZVThT79ccPZGt/muski5Sla20FstfqHXOMp3k2u/SBrgT604meCIJpslJN8J86SFs9OHc7UloaKicuBTh/L6+QnvAbIuUWmO4hjGRQgOYf4= Received: by 10.35.49.15 with SMTP id b15mr13445892pyk.1176219280441; Tue, 10 Apr 2007 08:34:40 -0700 (PDT) Received: from ?192.168.1.24? ( [24.13.179.233]) by mx.google.com with ESMTP id x48sm10686964pyg.2007.04.10.08.34.39; Tue, 10 Apr 2007 08:34:39 -0700 (PDT) Message-ID: <461BAD9B.2090803@gmail.com> Date: Tue, 10 Apr 2007 10:30:35 -0500 From: Ole Ersoy User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [Schema] ObjectClass DN Correct? References: <461A83DA.3000905@gmail.com> <461AC0D7.8070103@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks Alex, LDAP Studio is so nice, I'm almost scared to look. Incidentally, do you know (Stefan?) if LDAP Studio has a Schema drill down "Outline View" like the one in JXPlorer? I think in JXPlorer (Just from looking at the "Writing Java Objects to ApacheDS Part1" article), has a Schema tab, and below it one can drill down into the various Schema nodes. I looked LDAP Studio Schema Browser, and noticed the tabs with Schema node categories, and I was thinking that it would probably trigger a drill down view in the outline pane... Hope your cold gets better soon. I always chomp on a clove of Raw Garlic (It releases a very powerful antibiotic when crushed - has to be raw though). It's also great if people are inviting you to too many meetings at work :-) Thanks, - Ole Alex Karasulu wrote: > Stefan is absolutely correct here. Take a minute and start ADS 1.5.0 > and use LDAP Studio to browse the schema partition (ou=schema). By > browsing this partition you'll see the proper patterns required. > > Alex > > On 4/9/07, *Stefan Seelmann* > wrote: > > Hi Ole, > > > When adding a new ObjectClass to the Schema > > named "org.apache.tuscany.User" > > An objectClass or attributeType name must be an OID (object identifier), > that is defined as follows in RFC4512: > oid = descr / numericoid > descr = keystring > keystring = leadkeychar *keychar > leadkeychar = ALPHA > keychar = ALPHA / DIGIT / HYPHEN > numericoid = number 1*( DOT number ) > ... and so on > > So your name could be either something like > 0.11.222.3333.44444 > or > org-apache-tuscany-User > > > > is this how I do the DN?: > > > > DN: objectClass=org.apache.tuscany.User, ou=objectClasses, ou=Schema > > > > The DNs of the other objectclases in the schema looks like this: > "m-oid=2.5.6.5 ,ou=objectClasses,cn=core,ou=schema" > > So I would recommend to create your own schema suffix under ou=schema > where you could put the DAS schema. Here is an example in LDIF format, > how this could look like: > > ---------------------------------------------- > dn: cn=ecore,ou=schema > objectClass: metaSchema > objectClass: top > cn: ecore > m-dependencies: core > m-dependencies: system > > dn: ou=objectClasses,cn=ecore,ou=schema > objectClass: organizationalUnit > objectClass: top > ou: objectClasses > > dn: m-oid=0.11.222.3333.44444 ,ou=objectClasses,cn=ecore,ou=schema > objectClass: metaObjectclass > objectClass: metaTop > objectClass: top > m-oid: 0.11.222.3333.44444 > m-description: org.apache.tuscany.User > m-must: cn > m-name: org-apache-tuscany-User > m-obsolete: FALSE > m-supObjectClass: top > m-typeObjectClass: AUXILIARY > ---------------------------------------------- > > > BTW, the new schema feature is really cool. Once you have created the > "ou=objectClasses,cn=ecore,ou=schema" entry you could add new schema > elements by adding simple string values to cn=schema: > > ------------------------------------------- > dn: cn=schema > changetype: modify > add: objectClasses > objectClasses: ( 0.11.222.3333.44444 NAME 'org-apache-tuscany-User' > DESC 'org.apache.tuscany.User' SUP top AUXILIARY MUST cn > X-SCHEMA 'ecore' ) > - > ------------------------------------------- > > > Regards, > Stefan > >