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

adding new attribute



Title: adding new attribute

Hi,

I am trying to add a new objectclass with a new attribute type, so my file test.schema looks like that:

------------------------------------------------------------------
#test.schema

attributetype ( 1.1.2.1.1 NAME 'height'
        DESC ' height '
        EQUALITY caseIgnoreMatch
        SUBSTR caseIgnoreSubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
        SINGLE-VALUE )

objectclass ( 1.1.2.2.1 NAME 'heightObject' SUP person
        DESC 'my height'
        MUST height )
----------------------------------------------------------

I included this file in slapd.conf like that:
include /usr/local/etc/openldap/schema/test.schema

slapd starts well, but when I want to add an entry with a LDIF file like that :

-----------------------------------------------------------
#entry14.ldif
#Ramy's entry
dn: cn:Ramy Zaarour,dc=lumos,dc=com
cn:Ramy
objectclass: heightObject
height: 5
------------------------------------------------------------

i type this command line:
ldapadd -f entry14.ldif -x -D "cn=Manager,dc=lumos,dc=com" -w secret

and I get:

ldap_add: Undefined attribute type
        additional info: attribute type undefined

What did I wrong ?

Thanks in advance

-Julien