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

ldap_add:Operations error



Hi,

I ´m new with ldap (and linux:)
and I have for startup a newbie question:

I have installed all OpenLDAPv3 2.0 packages from SuSE 7.3 cd.
And I configurate the exampel from the ldap page for 2.x version.
ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
givies me my :

dn:
namingContext: dc=lokales-netz,dc=de
  
I make a file with touch named strukture.ldif
and I write the exampel configuration from page with
my domain and toplevel domain entry.

but when I run :

ldapadd -x -D "cn=Manager,dc=lokales-netz,dc=de" -W -f strukture.ldif
Enter LDAP Password: secret

it gives the error:

adding new entry "dc=lokales-netz,dc=de"
ldap_add: Operations error

ldif_record() = 1


Upppps :o) what is the mistake ???? I look to the config and I think
it looks good.
Can somebody help me ?????
Where is the way to create my first ldif data base ?

Thanks a lot and greatings from germany

Axel Machens




------slap.conf----------------------------------------

# This file should NOT be world readable.
#
include         /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://venus.lokales-netz.de

pidfile         /var/run/slapd.pid
argsfile        /var/run/slapd.args

# Load dynamic backend modules:
# modulepath    /usr/lib/openldap/openldap
# moduleload    back_ldap.la

# moduleload    back_ldbm.la
# moduleload    back_passwd.la
# moduleload    back_shell.la

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

database        ldbm
suffix          "dc=lokales-netz,dc=de"
#suffix         "o=Verkauf,c=de"
rootdn          "cn=Manager,dc=lokales-netz,dc=de"
#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       /var/lib/ldap
# Indices to maintain
index   objectClass     eq


---------------strukture.ldif--------------------------------------

dn: dc=lokales-netz,dc=de
objectclass: dcObject
objectclass: organization
o: Verkauf
dc: lokales-netz

dn: cn=Manager,dc=lokales-netz,dc=de
objectclass: organizationalRole
cn: Manager