OK, thanks for your help
now I am trying to add a new objectclass with a new attribute type, so
now 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=3Dlumos,dc=3Dcom
cn:Ramy
objectclass: heightObject
height: 5
------------------------------------------------------------
i type this command line:
ldapadd -f entry14.ldif -x -D "cn=3DManager,dc=3Dlumos,dc=3Dcom" -w =
secret
and I get:
ldap_add: Undefined attribute type
additional info: attribute type undefined
What did I wrong ?
Thanks in advance
-J
-----Original Message-----
From: Mark Wilcox [mailto:mew...@un...]
Sent: Thursday, January 18, 2001 1:13 PM
To: Flamand, Julien
Cc: Perl-Ldap-Dev (E-mail); Spencer, Dave
Subject: Re: adding attributetype
This is a question that's better served by asking on openldap-software
list (Www.openldap.org).
Also it's not a really good idea to modify an existing , in particular
standardized, objectclass. You can break a lot of things that way (in
particular clients who expect the standard objectclasses & attributes to
be the way they're laid out in the standards).
Instead you should extend an objectclass and then add your attributes to
that objectclass.
Schema checking tells the server to make sure that any modifications
(including adding new objects) to the data in the server, meets the
schema (which is the rules that control the data in the server) before
allowing them. If you turn schema checking off, this check never occurs.
It can lead to faster write performance, but you'll run a higher risk of
data inconsistency.
Mark
"Flamand, Julien" wrote:
> hi,
>
> I try to add a new attribute type to an objectclass, Attribute type
> 'height' to the objectclass 'person'. I created a file test.schema :
>
>
>
------------------------------------------------------------------------
-------------------------------------------
>
> #test.schema
>
> attributetype ( 1.1.2.1.1 NAME 'height'
> DESC 'unique name with my organization'
> SUP name )
>
>
------------------------------------------------------------------------
--------------------------------------------
>
> I included this file in slapd.conf like that:
> include /usr/local/etc/openldap/schema/test.schema
>
> I don't know if I should write "shemacheck on" or "shemacheck off" ?
> What does it mean exactly ?
>
> In the file slapd.conf I added height in the allowed attribute:
>
> MAY ( userPassword $ telephoneNumber $ seeAlso $ description $ height
> )
>
> But when I want to restart slapd, there is an error message
> AttributeType not found
>
> What did I wrong?
> What is the way to add a new attribute type to an existing objectclass
> ?
>
> Thanks
> Julien
>
>
>
>
>
>
>
|