Hi,
I'm using ldif below and when I seat he executes gives it the following error: ldapadd: invalid format (line 5) entry: "cn=schema,cn=config"
LDIF: dn: cn=schema,cn=config changetype: modify add: olcAttributeTypes olcAttributeTypes: ( 2.5.4.123 NAME 'name' DESC 'description' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
What problem with LDIF?
Thanks.
Eugenia Candida Oliveira de Moura writes:
ldapadd: invalid format (line 5) entry: "cn=schema,cn=config"
LDIF: dn: cn=schema,cn=config changetype: modify add: olcAttributeTypes olcAttributeTypes: ( 2.5.4.123 NAME 'name' DESC 'description' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
Put one space in front of EQUALITY. A line which starts with a space is a continuation of the previous line. Each attribute must be on one logical line.
I wrote:
Eugenia Candida Oliveira de Moura writes:
olcAttributeTypes: ( 2.5.4.123 NAME 'name' DESC 'description' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
Put one space in front of EQUALITY.
Er, also you can't define 'name' beacuse that is already built in (with OID 2.5.4.41). So it'll still fail.
Ok, but now ... I'm using the API of the Novell, LDAPAttributeSchema for to configure an attribute LDAP, I used this API in the version of OpenLDAP 2.3 to implement schema. Somebody already used this LDAPAttributeSchema for to construct a attributeType? Using this API I always have problems with the syntax of the constructed attribute.
Some idea?
2007/5/18, Hallvard B Furuseth h.b.furuseth@usit.uio.no:
I wrote:
Eugenia Candida Oliveira de Moura writes:
olcAttributeTypes: ( 2.5.4.123 NAME 'name' DESC 'description' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
Put one space in front of EQUALITY.
Er, also you can't define 'name' beacuse that is already built in (with OID 2.5.4.41). So it'll still fail.
-- Regards, Hallvard
openldap-software@openldap.org