[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: extend schema problem (Openldap 2.0.11)



No.. I still face the same problem.

Boris Shpungin wrote:

> Just a guess, but:
>
> Try to put STRUCTURAL on a line by itself, as follows:
>
> objectClass ( 1.3.6.1.4.1.10660.1.2.2.1 NAME 'secureLdapUser'
>       DESC ' LDAP User'
>       SUP top
>         STRUCTURAL
>       MAY ( cn $ userCertificate $ authorityRevocationList $
>        certificateRevocationList $ cACertificate $
>        crossCertificatePair $ description $ st $ l $
>        ou $ o $ jpegPhoto $ seeAlso $ streetAddress $
>        telephoneNumber $ facsimileTelephoneNumber $
>        uid $ userPassword ) )
>
> -Boris
>
> -----Original Message-----
> From: Siok Peng [mailto:siokpeng@transparity.com]
> Sent: Wednesday, September 05, 2001 7:37 PM
> To: josee.desmarais@internet.uqam.ca
> Cc: openldap-software@OpenLDAP.org
> Subject: Re: extend schema problem (Openldap 2.0.11)
>
> Thanks Louis. I have try your suggestion. But, I still got the same error
> message. Do you have any other suggestion ?
>
> Regards,
> Siok Peng
>
> Louis-Steve & Josée wrote:
>
> > Try to put your NAME 'secureLdapUser' on an another line like this :
> >
> > objectClass ( 1.3.6.1.4.1.10660.1.2.2.1
> >      NAME 'secureLdapUser'
> >      DESC ' LDAP User'
> >      SUP top STRUCTURAL
> >      MAY ( cn $ userCertificate $ authorityRevocationList $
> >       certificateRevocationList $ cACertificate $
> >       crossCertificatePair $ description $ st $ l $
> >       ou $ o $ jpegPhoto $ seeAlso $ streetAddress $
> >       telephoneNumber $ facsimileTelephoneNumber $
> >       uid $ userPassword ) )
> >
> > -----Message d'origine-----
> > De : owner-openldap-software@OpenLDAP.org
> > [mailto:owner-openldap-software@OpenLDAP.org]De la part de Siok Peng
> > Envoyé : 5 septembre, 2001 05:37
> > À : openldap-software@OpenLDAP.org
> > Objet : extend schema problem (Openldap 2.0.11)
> >
> > Hi all:
> >     I have another question to ask. I am trying extend the schema so that
> I
> > can use my own ObjectClass at ldap server. My extend schema as below :
> > objectClass ( 1.3.6.1.4.1.10660.1.2.2.1 NAME 'secureLdapUser'
> >      DESC ' LDAP User'
> >      SUP top STRUCTURAL
> >      MAY ( cn $ userCertificate $ authorityRevocationList $
> >       certificateRevocationList $ cACertificate $
> >       crossCertificatePair $ description $ st $ l $
> >       ou $ o $ jpegPhoto $ seeAlso $ streetAddress $
> >       telephoneNumber $ facsimileTelephoneNumber $
> >       uid $ userPassword ) )
> > Then, I have got the following message after using slapadd to add a new
> > entry:
> > /etc/openldap/schema/test.schema: line 24: Unexpected token before MAY (
> uid
> > $ userPassword )) imileTelephoneNumber $ $$
> > ObjectClassDescription = "(" whsp
> >   numericoid whsp      ; ObjectClass identifier
> >   [ "NAME" qdescrs ]
> >   [ "DESC" qdstring ]
> >   [ "OBSOLETE" whsp ]
> >   [ "SUP" oid ]                 ; Superior ObjectClasses
> >   [ ( "ABSTRACT" / "STRUCTURAL" / "AUXILIARY" ) whsp ]
> >                                     ; default structural
> >   [ "MUST" oids ]            ; AttributeTypes
> >   [ "MAY" oids ]            ; AttributeTypes
> >   whsp ")"
> > No database found in config file
> > My slapd.conf as below :
> > include  /usr/local/etc/openldap/schema/core.schema
> > include  /usr/local/etc/openldap/schema/test.schema
> > schemacheck on
> > pidfile  /usr/local/var/slapd.pid
> > argsfile  /usr/local/var/slapd.args
> > sizelimit  10
> > database ldbm
> > suffix ""
> > directory /usr/local/db/ldapdb
> > rootdn "cn=Manager,o=Transparity,c=SG"
> > rootpw secret99
> > cachesize 10000
> > dbcachesize 10000000
> > loglevel 0
> > readonly   off
> > and my ldif file as below
> > dn: c=AF
> > objectclass: top
> > objectclass: country
> > c: AF
> > description: Afghanistan
> > Could anyone explain me what is wrong? Thanks !
> > Regards
> > Siok Peng