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

RE: question on ldap database creation



> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Buchan Milne

> > I'm using the commnad :
> >
> > ldapadd -x -D "cn=Manager,dc=lifetree,dc=com" -w secret -h
> 192.168.1.167 -p 389 -P 3 -f addentry1.ldif
> >
> > adding new entry "dc=lifetree,dc=com"
> > ldap_add: Operations error
> >
> > ldif_record() = 1
> >
> > Can some body help me ?? As its been a long time i'm trying
> to create database.
> >
> > The content of the file addentry1.ldif is :
> >
> > dn: dc=lifetree,dc=com
> > objectclass: dcObject
> > dc: lifetree
> >
> > and, The content of the file slapd.conf  is :
> >
> >
> > database        ldbm
> > suffix          "dc=lifetree,dc=com"
>
> You can't add your suffix, since it already exists. If this is just
> the first entry you ar importing in the ldif file, either use "-c" in
> your ldapadd, or remove the entry for dc=lifetree,dc=com from
> your ldif file.

Wrong, the suffix entry must be created just like any other entry, and it
must be created before any other.

This problem is most frequently caused by not creating the filesystem
directory before starting. E.g., mkdir /var/MY-DB-DIR...

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support