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

ldap_add: Already exists

Hello, it't already more than one week that i'm busy with my ldap server and
it still doesn't work.
Could someone help me?
i downloaded and installed version 2.0.23
These are the configuration files:

include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/nis.schema
include         /usr/local/etc/openldap/schema/misc.schema

schemacheck     on

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

defaultaccess  none

access to attr=userpassword
        by self write
        by dn="cn=root,o=linuxdomain.es" write
        by anonymous auth
        by * none

access to *
        by self read
        by dn="cn=root,o=linuxdomain.es" write
        by * none

access to dn="cn=root,o=linuxdomain.es"
         by * none

database        ldbm
suffix          "dc=linuxdomain,dc=es"

rootdn          "cn=root,dc=linuxdomain,dc=es"
rootpw          ldap
directory       /usr/local/var/openldap-ldbm

This is the ldap.conf file:
host localhost
base o=linuxdomain.es

This is linuxdomain.es.ldif file:
dn: o=linuxdomain.es
o: linuxdomain.es
objectclass: top
objectclass: organization

dn: uid=gijs, o=linuxdomain.es
cn: Gijs Lemahieu
sn: Lemahieu
objectclass: person

dn: uid=wannes, o=linuxdomain.es
cn: Wannes Debusschere
sn: Debusschere
objectclass: person

dn: uid=stijn, o=linuxdomain.es
cn: Stijn Bal
sn: Bal
objectclass: person

The core.schema file I let it default.

The database in the directory /usr/local/var/openldap-ldbm i removed

Now i give this command to start the database:
/usr/local/libexec/slapd -d l -h "ldap://

Then when i would like to add the ldif file to the database i do it with
this command:
ldapadd -D "cn=root,o=linuxdomain.es" -w ldap -f
/usr/local/etc/openldap/linuxdomain.es.ldif -x

and i'm getting this as result:
adding new entry "o=linuxdomain.es"
ldap_add: Already exists

ldif_record() = 68

I already tried lots of things but it still doesn't work, i get the same
error although i removed the 
database. Is this because of the fact that the entry is still in the cache
or what can i do about it?
Thanks a lot if you could help me

GMX - Die Kommunikationsplattform im Internet.