[Date Prev][Date Next]
RE: problems with importing LDIF file
Thanks Thomas, I already figured it out the hard way and have successfully
added my new attributes and objectclasses by including my schema file in
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Thomas Hager
Sent: Friday, December 28, 2001 8:22 AM
Subject: Re: problems with importing LDIF file
On Thu, 2001-12-27 at 18:28, Jack Leong wrote:
> The extract from my LDIF file is as follows:
> attributetype ( 2.16.840.1.113722.214.171.124.1
> NAME 'myTestAttribute'
> DESC 'my test attribute description'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 126.96.36.199.4.1.14188.8.131.52.15 )
that's not an ldif record, it's an attributetype specification. these
usually reside in schema files in your /etc/openldap/schema directory,
e.g. the core.schema. if included in your slapd.conf, these schema
definitions are loaded on startup. you cannot add them with ldapadd.
an ldif record looks as follows:
dn: cn=Barbara J Jensen,dc=example,dc=com
cn: Barbara J Jensen
cn: Babs Jensen
have a look on the openldap administrators guide for detailed