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

ldapdelete & ldapmodify--No such object (ITS#420)



I am something of a newbie to OpenLDAP (version 1.2.4 running on RedHat Linux 6.0).  I can add entries & find entries, but can't delete them or modify them.
the error I get for both ldapdelete & ldapmodify:
ldap_delete: No such object
ldap_delete: matched: O=THE WASHINGTON HOSPITAL,C=US

I've listed slapd.conf file below--also commands that work & example of ldapdelete, which doesn't.
Any ideas?
Thanks.

########################################################################
########################################################################
#slapd.conf FILE
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /usr/local/etc/openldap/slapd.at.conf
include         /usr/local/etc/openldap/slapd.oc.conf
schemacheck     off
#referral       ldap://ldap.itd.umich.edu

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

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

database        ldbm
#suffix         "dc=your-domain, dc=com"
suffix          "o=The Washington Hospital, c=US"
directory       /usr/local/etc/openldap/twhdb
rootdn          "cn=Manager, o=The Washington Hospital, c=US"
rootpw          secret
index           cn,sn,uid
index           objectclass pres,eq
index           default none
#########################################################################
#########################################################################

# ldapadd -D "cn=Manager, o=The Washington Hospital, c=US" -W < /tmp/ldifl  
This works when the ldif file looks like this:
dn: Bart Simpson, o=The Washington Hospital, c=US
cn: Bart Simpson
objectclass: person
sn: Simpson
mail: bsimpson@hotmail.com

# ldapsearch -L -b "o=The Washington Hospital, c=US"  "cn=Bart Simpson" ;; this works
dn: Bart Simpson, o=The Washington Hospital, c=US
cn: Bart Simpson
objectclass: person
sn: Simpson
mail: bsimpson@hotmail.com

# ldapdelete -D "cn=Manager, o=The Washington Hospital, c=US" -W  "cn=Bart Simpson, o=The Washington Hospital, c=US"  
Enter LDAP Password: 
ldap_delete: No such object
ldap_delete: matched: O=THE WASHINGTON HOSPITAL,C=US


ldapdelete options I've also tried (& probably other variants, too.)  None work.
# ldapdelete -D "cn=Manager, o=The Washington Hospital, c=US" -W  "cn=Bart Simpson"
# ldapdelete -D "cn=Manager, o=The Washington Hospital, c=US" -W  "Bart Simpson"
# ldapdelete "cn=Bart Simpson, o=The Washington Hospital, c=US"

Note--these are the only entries in the LDAP db that aren't people w/ email addresses.  Does it need something else?
dn: o=The Washington Hospital, c=US
dc: twhzone.org
o: The Washington Hospital
objectclass: organization
objectclass: dcObject

dn: cn=Manager, o=The Washington Hospital, c=US
cn: Manager
sn: Manager
objectclass: person 


----------------------------------------------------------------
Get your free email from AltaVista at http://altavista.iname.com