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

RE: extend schema problem (Openldap 2.0.11)



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