Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6DB3F9754 for ; Mon, 16 Apr 2012 12:59:38 +0000 (UTC) Received: (qmail 28544 invoked by uid 500); 16 Apr 2012 12:59:38 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 28509 invoked by uid 500); 16 Apr 2012 12:59:38 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 28500 invoked by uid 99); 16 Apr 2012 12:59:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 12:59:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shiraz.lists@googlemail.com designates 209.85.217.178 as permitted sender) Received: from [209.85.217.178] (HELO mail-lb0-f178.google.com) (209.85.217.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 12:59:34 +0000 Received: by lbao2 with SMTP id o2so983032lba.37 for ; Mon, 16 Apr 2012 05:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=W5Tcl+7PCNQYOxKoses96SvJLlGJTSKGL++Lf+4l9yI=; b=E3juK/wuF8X0JZTHKoRWtSt5ITg7InssvqpDyAiauOun+ApqQkwEyryIIQlPsn4mLB bJih8F5GUNpKD3izEukHsmkSJO0DlWyM5ZbZ1siv/tbYs60z+YBnxJtp83OJFUunXjbc +vte8d9FmnDLA+SiiVuC5Milxz8bLh/qxrpncYlafsR2AsmiT1YAFFx0clXn10Q9G8oC tg6ci/JmrkIUNrAM3qrJDfR386NV/Ha78ZxxQscCtoorHz/BSvvZv+/+3Am8KWx/fBUV W7spuup+rReAUhbQUHMPGoMN2yoGymDYGSlhWBWvNknPtXoEJ2zM9JNmmpdJ9b9eIFMr +skA== MIME-Version: 1.0 Received: by 10.152.135.104 with SMTP id pr8mr10189545lab.27.1334581152173; Mon, 16 Apr 2012 05:59:12 -0700 (PDT) Received: by 10.152.6.130 with HTTP; Mon, 16 Apr 2012 05:59:12 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Apr 2012 14:59:12 +0200 Message-ID: Subject: Re: Adding custom .schema files From: =?UTF-8?B?2YTYs9m5IOCktuCkv+CksOCkvuCknOCkvCAg?= To: users@directory.apache.org Content-Type: multipart/alternative; boundary=f46d04426bd67fcfa504bdcb6352 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04426bd67fcfa504bdcb6352 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable many thanks Kiran! After adding new nis dependency, i am able to import the schema now. However can one change .schema file before to get the right ldif from studio? Cheers, Shiraz On Mon, Apr 16, 2012 at 2:31 PM, Kiran Ayyagari wrote= : > the schema uses caseExactIA5SubstringsMatch which is part of the nis > schema, so enable nis schema > and then import. > otoh, the desriptions in the ldif file are being encoded as Base64 > values by Studio cause of some unwanted > white space in .schema file, you may want to fix those as well, > however this won't block the schema from importing > > 2012/4/16 =D9=84=D8=B3=D9=B9 =E0=A4=B6=E0=A4=BF=E0=A4=B0=E0=A4=BE=E0=A4= =9C=E0=A4=BC : > > I do not think the schema has any dependencies, as it does not have any > > m-dependencies attribute within. For more insight the logs have been > pasted: > > > > server console log: http://pastebin.com/RDEshSuY > > > > the ldif, generated from openldap schema: http://pastebin.com/QmBUxph5 > > > > and the import log: http://pastebin.com/2aVs6f9c > > > > Many Thanks, > > Shiraz > > > > On Mon, Apr 16, 2012 at 12:05 PM, Kiran Ayyagari >wrote: > > > >> 2012/4/16 =D9=84=D8=B3=D9=B9 =E0=A4=B6=E0=A4=BF=E0=A4=B0=E0=A4=BE=E0= =A4=9C=E0=A4=BC : > >> > Hi Kiran, > >> > > >> > Thanks for the reply and also helped a bit. > >> > > >> > I have imported the openldap schema file and exported as apache-ldap > ldif > >> > schema with the schema editors. Thereafter tried to import into the > DIT > >> > with LDAP browser while running the apacheds in parallel, however > >> > encountered several errors of similar type on console (server side), > i.e. > >> > > >> > [11:37:40] ERROR > >> > [org.apache.directory.server.core.schema.SchemaInterceptor] - ERR_59 > >> Cannot > >> > have a superior which does not exist > >> > > >> looks like some ObjectClasses in your schema are missing > >> OR > >> if your schema depends on any other schemas that are already present > >> in server but not enabled > >> at the time of loading. To fix this set the 'm-disabled' value to > >> FALSE on that schema entry > >> e.x if your schema depends on mozilla schema > >> then goto the entry with DN cn=3Dmozilla,ou=3Dschema > >> and change the value of 'm-disabled' to FALSE > >> > >> > Apart from that, I have also noticed the difference in number of > classes > >> > and attributes being shown in the schema editor (315 attributes, 36 > >> > classes) and imported schema in the ldap browser (109 attributes, 2 > >> > classes). This is probably due to the failures while importing the > >> schema. > >> > > >> > Any help would be highly appreciated. > >> > > >> > Shiraz > >> > > >> > On Fri, Apr 13, 2012 at 4:51 PM, Kiran Ayyagari >> >wrote: > >> > > >> >> you cannot add .schema files directly, use Apache Directory Studio = to > >> >> convert them to > >> >> Apache Directory Server's schema file (which is in LDIF) and then > >> >> import into the server > >> >> again using Studio > >> >> > >> >> 2012/4/13 =D9=84=D8=B3=D9=B9 =E0=A4=B6=E0=A4=BF=E0=A4=B0=E0=A4=BE= =E0=A4=9C=E0=A4=BC : > >> >> > Dear Group Members, > >> >> > > >> >> > I would really be grateful if you have any hints to include > *.schema > >> >> files > >> >> > in the apache ds (not necessarily in the embedded version). > >> >> > > >> >> > Many thanks, > >> >> > Shiraz > >> >> > > >> >> > 2012/4/12 =D9=84=D8=B3=D9=B9 =E0=A4=B6=E0=A4=BF=E0=A4=B0=E0=A4=BE= =E0=A4=9C=E0=A4=BC > >> >> > > >> >> >> Hi, > >> >> >> > >> >> >> I am very new to ApacheDS (ads), in fact to the LDAP world. I > have an > >> >> >> application running the embedded ads server taken from > >> >> >> > >> >> >> > >> >> >> > >> >> > >> > http://svn.apache.org/repos/asf/directory/documentation/samples/trunk/emb= edded-sample/src/main/java/org/apache/directory/seserver/EmbeddedADSVer157.= java > >> >> >> > >> >> >> Now I wonder if the following .schema file - which contains many > of > >> the > >> >> >> following classes and attributes, could be loaded into the > embedded > >> ads? > >> >> >> > >> >> >> > >> >> >> =3D=3D=3D=3DBegin=3D=3D=3D=3D > >> >> >> ......... > >> >> >> ... > >> >> >> attributetype ( 1.3.6.1.4.1.6757.100.1.1.5.2.4 > >> >> >> NAME 'GLUE2ExtensionEntityForeignKey' > >> >> >> DESC 'ForeignKey' > >> >> >> EQUALITY caseExactIA5Match > >> >> >> SUBSTR caseExactIA5SubstringsMatch > >> >> >> SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 > >> >> >> ) > >> >> >> > >> >> >> objectclass ( 1.3.6.1.4.1.6757.100.1.1.5.2 > >> >> >> NAME 'GLUE2Extension' > >> >> >> DESC 'A key/value pair enabling the association of extra > >> >> >> information' > >> >> >> STRUCTURAL > >> >> >> MUST ( GLUE2ExtensionLocalId $ GLUE2ExtensionKey $ > >> >> >> GLUE2ExtensionValue > >> >> >> $ GLUE2ExtensionEntityForeignKey ) > >> >> >> ) > >> >> >> > >> >> >> ...... > >> >> >> .... > >> >> >> =3D=3D=3D=3DEnd=3D=3D=3D=3D=3D > >> >> >> > >> >> >> > >> >> >> Secondly do you suggest any developer reference (e.g. book) whic= h > I > >> can > >> >> >> use to create the desired application? > >> >> >> > >> >> >> Thanks in advance, > >> >> >> > >> >> >> -- > >> >> >> Shiraz > >> >> >> > >> >> >> > >> >> > > >> >> > > >> >> > -- > >> >> > Cheers, > >> >> > Shiraz > >> >> > >> >> > >> >> > >> >> -- > >> >> Kiran Ayyagari > >> >> > >> > > >> > > >> > > >> > -- > >> > Cheers, > >> > Shiraz > >> > >> > >> > >> -- > >> Kiran Ayyagari > >> > > > > > > > > -- > > Cheers, > > Shiraz > > > > -- > Kiran Ayyagari > --=20 Cheers, Shiraz --f46d04426bd67fcfa504bdcb6352--