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

problems with adding new entries to my ldbm



  Its nbeen few days that I try to add entries to my ldbm through
entries.ldif but I dont succedd.
 I get ldap_bind :invalid credentials .
my entries.ldif file look like this :

dn: dc=macam,dc=ac,dc=il
objectClass: dcObject
objectClass: organization
o: bli
dc: macam
description: The Macam Corporation

# Organizational Role for Directory Manager
dn: cn=Manager,dc=macam,dc=ac,dc=il
objectClass: organizationalRole
cn: Manager
description: Directory Manager

dn: cn=nir,dc=macam,dc=ac,dc=il
cn: nir
objectClass: top
objectClass: person
objectClass: organizationalPerson
sn: cohen
description: bla

dn: cn=zvika,dc=macam,dc=ac,dc=il
cn: zvika 
objectClass: top
objectClass: person
objectClass: organizationalPerson
sn: sh
description: bla

dn: cn=kobis,dc=macam,dc=ac,dc=il
cn: kobis
objectClass: top
objectClass: person
objectClass: organizationalPerson
sn: snir
description: bla

dn: cn=morissi
cn: morissi
objectClass: top
objectClass: person
objectClass: organizationalPerson
description: bla

#Achva institute
#dn: ou=achva
#objectClass: dcObject
#objectClass: organization
#description: achva subdomain
#o: achv

(END)

 and my slapd.conf look like this:
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.6 2001/04/20
23:32:43 ku
rt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /usr/local/etc/openldap/schema/core.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral       ldap://root.openldap.org

pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args

# Load dynamic backend modules:
# modulepath    /usr/local/libexec/openldap
# moduleload    back_ldap.la
# moduleload    back_ldbm.la
# moduleload    back_passwd.la
# moduleload    back_shell.la

#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
suffix          "dc=macam,dc=ac,dc=il"
#suffix         "o=My Organization Name,c=US"
rootdn          "cn=Manager,dc=macam,dc=ac,dc=il"
#rootdn          "uid=root@macam.ac.il"
#rootdn         "cn=Manager,o=My Organization Name,c=US"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          secret
# The database directory MUST exist prior to running slapd AND 
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory       /usr/local/var/openldap-ldbm
# Indices to maintain
index   objectClass     eq
index   uid            pres,eq,sub
index   cn,sn          pres,eq,sub


and when I tried to add morissi to the ldbm it tells me
ldap_bind:invalid credentials
i am doing: ldapadd -x -D "cn=morissi,dc=macam,dc=ac,dc=il" -w secret -f
entries.ldif

If I erase all the ldbm files and start slapd all over again.and
afterwords I am doing  the command:   
ldapadd -x -D "cn=Manager,dc=macam,dc=ac,dc=il" -w secret -f
entries.ldif
then all the entries are entered including morissi.
But if  I try to add a new entry with a new cn it will tell me that I
have invalid credentials.
If I try to enter the entry with ldapadd and cn=Manager again then it
tells me that my domain is allready exist.

So if anyone can help me I appriciate your help.