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

Re: ldap_add: Already exists



Sorry ,  I wrote in a wrong language.

You can add the option -c. It tells
to the command ldapadd to continue
processing the ldif file
in case of some problem.

 ldapadd -D "cn=root,o=linuxdomain.es" -w ldap -f -c
 /usr/local/etc/openldap/linuxdomain.es.ldif -x


----- Original Message -----
From: "Francisco Roldan" <2083200@comcel.com.gt>
To: <openldap-software@OpenLDAP.org>
Sent: Thursday, June 06, 2002 11:39 AM
Subject: Re: ldap_add: Already exists


> Puedes agregarle la opcion -c
> para que continue cuando tenga
> un problema.
>
> ldapadd -D "cn=root,o=linuxdomain.es" -w ldap -f
> /usr/local/etc/openldap/linuxdomain.es.ldif -x
>
> ----- Original Message -----
> From: "Francisco Roldan" <2083200@amigo.net.gt>
> To: <openldap-software@OpenLDAP.org>
> Sent: Thursday, June 06, 2002 11:37 AM
> Subject: Re: ldap_add: Already exists
>
>
> > Puedes agregarle la opcion -c
> > para que continue cuando tenga
> > un problema.
> >
> > ldapadd -D "cn=root,o=linuxdomain.es" -w ldap -f
> > /usr/local/etc/openldap/linuxdomain.es.ldif -x
> >
> > ----- Original Message -----
> > From: "Dhiren Pankhania" <dhiren.pankhania@digital.cwctv.org>
> > To: <gijs_lemahieu@gmx.net>; <openldap-software@OpenLDAP.org>
> > Sent: Wednesday, June 05, 2002 8:30 AM
> > Subject: RE: ldap_add: Already exists
> >
> >
> > Your LDIF is adding an entry that is already there. Remove this from the
> > LDIF file and import again.
> >
> > -----Original Message-----
> > From: owner-openldap-software@OpenLDAP.org
> > [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of
> > gijs_lemahieu@gmx.net
> > Sent: Monday, May 27, 2002 11:25 AM
> > To: openldap-software@OpenLDAP.org
> > Subject: 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:
> >
> >
> > slapd.conf:
> > -------------------------------------
> > 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://192.168.0.20:389
> > ldaps://192.168.0.20:636/"
> >
> > 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
> > Gijs
> >
> > --
> > GMX - Die Kommunikationsplattform im Internet.
> > http://www.gmx.net
> >
>