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

Re: ldap_delete: No such object

> ldapdelete gives a No such object error (ldapsearch has the 
> same problem). This is how I used it:
> ldapdelete -f ~/Entrees_ldap/entree1.ldap -D "cn=root, 
> o=Experian, dc=FR" -w secret
> The exact output of the command is : 
> ldap_delete: No such object
> ldap_delete: matched: O=EXPERIAN,DC=FR
> Here is the entree1.ldap file:
> cn=Kadda SAHNINE, o=Experian, dc=FR
> objectclass=person
> cn=Kadda SAHNINE
> sn=Kadda
> description=Ayatollah de l'info libre
> mail=linuxity.dyn.ml.org
> Yet, this entry exists in the id2entry.dbb file (ldapadd 
> worked fine)
> I also tried to delete it giving ldapdelete only the dn, 
> but it didn't work better
> I think it's a very stupid mistake, but I can't find out 
> where it is.

Well, it is.  You should only send DNs to ldapdelete.  All that other
stuff (objectclass=person, etc.) is not recognizable to ldapdelete.
The first time you tried this command, it probably deleted 
"cn=Kadda SAHNINE, o=Experian, dc=FR" and then failed on "objectclass=person".
Now if fails earlier because "cn=Kadda SAHNINE, o=Experian, dc=FR" is already