[CentOS] Problems with deleting a reference in 389DS

Sat Nov 29 18:30:32 UTC 2014
Jay Leafey <jay.leafey at mindless.com>

On 11/28/2014 09:45 AM, Kevin Thorpe wrote:
> Hi, I'm having problems deleting something from 389DS. At one point I had a
> link to use an external LDAP server for authentication for a particular
> client. I now need to delete this but I am having trouble.
>
> Firstly I can't find this object in either the directory manager or
> ldapadmin.
>
> I can see the object using db2ldif:
> <SNIP>
> but I can't delete with ldapdelete:
>      [root at logger ~]# ldapdelete -D "cn=Directory Manager" -w mypassword -p
> 389 -h localhost -x dn=cn=bloggsco,dc=mycompany,dc=com
>          ldap_delete: No such object (32)
>          matched DN: dc=mycompany,dc=com
>
> any ideas?
>

Just a thought, I don't think ldapdelete wants the DN in the form 
"dn=cn=...".  Try to remove the "dn=" prefix from the DN.

-- 
Jay Leafey - jay.leafey at mindless.com
Memphis, TN