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

Re: adding new attribute

There have been numerous discussions in the past few weeks
on how to add new schema to the server (which is discussed
in the Admin Guide).  As archives are available, I'll just
point out the basic steps you have missed:
        1) verifying the schema added is listed in the
        subschema entry published by the server, and

        2) checking the server log files for hints as to the
        reason you are getting errors on the client side.


At 06:12 PM 1/18/01 -0800, Flamand, Julien wrote:

>I am trying to add a new objectclass with a new attribute type, so my file test.schema looks like that: 
>attributetype ( NAME 'height' 
>        DESC ' height ' 
>        EQUALITY caseIgnoreMatch 
>        SUBSTR caseIgnoreSubstringsMatch 
>        SYNTAX 
>        SINGLE-VALUE ) 
>objectclass ( 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 : 
>#Ramy's entry 
>dn: cn:Ramy Zaarour,dc=lumos,dc=com 
>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