Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 56001 invoked from network); 9 May 2008 09:36:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 May 2008 09:36:01 -0000 Received: (qmail 945 invoked by uid 500); 9 May 2008 09:36:03 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 924 invoked by uid 500); 9 May 2008 09:36:03 -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 908 invoked by uid 99); 9 May 2008 09:36:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 May 2008 02:36:03 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of akarasulu@gmail.com designates 209.85.198.232 as permitted sender) Received: from [209.85.198.232] (HELO rv-out-0506.google.com) (209.85.198.232) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 May 2008 09:35:16 +0000 Received: by rv-out-0506.google.com with SMTP id g37so1272626rvb.25 for ; Fri, 09 May 2008 02:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=DjXDygpK1el5CGgaiybXcmrc5/Z3PjAsVqmXyu56KSY=; b=axSkLLpK5YB3mst86tJauEPXZoFK5816Xnmigf9RpBdI1QoD+na4Cun7kCQIgMdjRFePuR1FXzAn2G4JsZPpVJq1V7lXu6tkBfm6K0HXdHUjgt51Sxzo2V8GdhZD82OVAJ+/I/4MskTj7tM+kEbcxDwtFnq4IEKbQi7PMRvXFbk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=E7J855dYyeqRMiP0CM5id+0IgYKdlNSXvF3vRuMRGIGYntdxHoup3eqwrmmRaXl8us0dDmo6LEljr3So0HWU7wmjFU+qzpTimFr/iHo40GE9jCyc2rN4dBcz+kNCGz5IJ/yvpD7KbgMzBKU475/9Et5kHazmDFxpUdeAVZQHrIE= Received: by 10.141.43.5 with SMTP id v5mr2055960rvj.216.1210325730970; Fri, 09 May 2008 02:35:30 -0700 (PDT) Received: by 10.141.113.13 with HTTP; Fri, 9 May 2008 02:35:30 -0700 (PDT) Message-ID: Date: Fri, 9 May 2008 05:35:30 -0400 From: "Alex Karasulu" Sender: akarasulu@gmail.com To: users@directory.apache.org Subject: Re: adding schema In-Reply-To: <36041a720805090048k536890d3p8edf2ee6fcde6d80@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6309_24591627.1210325730970" References: <5757c1aa0805080620n606134b0u10aea675584eb38e@mail.gmail.com> <36041a720805080628l46413a71w2f34e18f0fa2889c@mail.gmail.com> <36041a720805080705h6d7c8e7dh2510ac792a558e19@mail.gmail.com> <4823E39F.3000100@apache.org> <4823E8FE.8070804@apache.org> <36041a720805090048k536890d3p8edf2ee6fcde6d80@mail.gmail.com> X-Google-Sender-Auth: 778e9e8cca12775d X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_6309_24591627.1210325730970 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Lowercase the objectClass to objectclass. Same with attributeType make sur= e it is all lowercase. We followed the protocol specification with this. OpenLDAP schemas used to have more liberty but they're changing it too. Just take a look at their latest schema files. They are using the proper order and case now. Alex On Fri, May 9, 2008 at 3:48 AM, Jeroen Vriesman wrote: > Hi, > > treid to import schema's from openldap. > > The import function seems to be very strict. > > First, I got the error: > The file '/root/schema/hivos.schema' can not be read correctly. > Line: 23, Column: 9, Cause: unexpected token: NAME > > When I look in the schema file: > attributetype ( 1.3.6.1.4.1.17416.0.255.1.4 > DESC 'absolute shared folder location' > NAME 'sharedFolderLocation' > EQUALITY caseExactIA5Match > SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) > > That one works when I change it to: > attributetype ( 1.3.6.1.4.1.17416.0.255.1.4 > NAME 'sharedFolderLocation' > DESC 'absolute shared folder location' > EQUALITY caseExactIA5Match > SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) > > So the import function always expects the NAME first, openldap doesn't ca= re > about that. > > After correcting this, I get the error: > The file '/root/schema/hivos.schema' can not be read correctly. > Line: 121, Column: 1, Cause: expecting "END", found 'objectClass' > > In the openldap schema file this is where the objectclasses start: > attributetype ( 1.3.6.1.4.1.17416.0.255.1.19 > NAME 'horoThuis' > DESC 'True if person is not coming from an internal IP' > EQUALITY booleanMatch > SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 > SINGLE-VALUE ) > > objectClass ( 1.3.6.1.4.1.17416.0.255.0.14 NAME 'hivosMailAccount' SUP to= p > AUXILIARY <----- line 121 > DESC 'Mail account object as used by Hivos' > MUST ( mail $ homeDirectory $ mailbox $ userPassword ) > MAY ( quota $ subscribeToSharedFolder $ isSharedFolder $ hivosIsIn= $ > horoAanwezig $ horoInDienst $ horoThuis ) ) > > The number of ( and )'s are correct in the file, so I don't see what it > actually expects. > > Regards, > Jeroen. > > > > > > > > On Fri, May 9, 2008 at 8:02 AM, Emmanuel Lecharny > wrote: > > > Stefan Seelmann wrote: > > > >> > >> and most of the time admins don't want to start huge complex > >>> interfaces to add or edit a schema, working with simple text files is > (at > >>> least for me) the easyest way. > >>> > >>> > >>> > >> > >> That is right. Perhaps we should try to extract the schema import and > >> export to a separate library, then we could use it for CLI and GUI. > >> > >> > > The best idea, and we already discussed about it, would be to simply dr= op > > the new schema into a directory, and either restart the server, or use = a > CLI > > to ask the server to load this new schema, or to send an extended reque= st > to > > the server to tell it to load the file. > > > > We have everything we need to do that, except the glue... > > > >> Regards, > >> Stefan > >> > >> > >> > > > > > > -- > > -- > > cordialement, regards, > > Emmanuel L=E9charny > > www.iktek.com > > directory.apache.org > > > > > > > ------=_Part_6309_24591627.1210325730970--