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

Re: question on ldap database creation



On Wed, 28 Jan 2004, sanjay wrote:

> Dear LDAP Gurus !!!
> 
> I'm new to the LDAP domain.. While installing the redhat linux 9, the ldap version 3 got installed automatically. 
> Now I want to create database of my own, through my ldap client application, but while
> creating the database i'm getting the following error,
> 
> 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.

Regards,
Buchan