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

Re: question on ldap database creation



ons, 28.01.2004 kl. 06.59 skrev sanjay:

> 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

Try:

dn: dc=lifetree,dc=com
objectclass: dcObject
objectclass: organization
objectclass: top

What's happening is, that you have no structural objectClass in your
addition. You've already defined the objectClass dc in your suffix, in
slapd.conf. You are now adding the basic organization for what you will
add later.

2 things:

1: RedHat linux 9 includes Openldap 2.0.27 - which is dead and gone. Try
and get hold of >= 2.1.23 and BDB 4.1.25 (better still, patched 4.2.52)
rpms, or compile your own. (Could be that RH 9 already uses BDB 4.1.25,
and not ldbm, which should also be dead and gone. Though do not use BDB
<= 4.1.25);

2: Get hold of the 2.1 Admin Guide from www.openldap.org and follow
that. The Quick Start Guide is a good place to begin. Remember that a
deal of what it tells you does not apply to Openldap 2.0.x

--Tonni

-- 

mail: billy - at - billy.demon.nl
http://www.billy.demon.nl