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

newbie still: ldapdelete: why won't it.

Hi All,

Trying to delete an entry, so here is the results of search

jdw@thoth:~$ ldapsearch -x -b 'dc=shadshed,dc=com' '(objectclass=*)'

# extended LDIF
# LDAPv3
# base <dc=shadshed,dc=com> with scope sub
# filter: (objectclass=*)
# requesting: ALL

# shadshed.com
dn: dc=shadshed,dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
o: Shadow Robot Company
dc: shadshed

# admin, shadshed.com
dn: cn=admin,dc=shadshed,dc=com
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator

# jdw, People, shadshed.com
dn: uid=jdw,ou=People,dc=shadshed,dc=com
uid: jdw
cn: Mark Worsdall
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
shadowLastChange: 13193
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 1010
gidNumber: 1010
homeDirectory: /home/jdw
gecos: worsdall,,,,,,

# search result
search: 2
result: 0 Success

# numResponses: 4
# numEntries: 3

Want to delete the # jdw, People, shadshed.com entry.


ldapdelete -x -w Fl0Cabs -D cn=admin,dc=shadshed,dc=com "dn: uid=jdw,ou=People,dc=shadshed,dc=com"

but got

Delete Result: Invalid DN syntax (34)
Additional info: invalid DN

I thought that the dn (Distinguished name) would be: dn: uid=jdw,ou=People,dc=shadshed,dc=com

So I pasted that onto the end of ldapdelete line.

The command (ldapdelete ) and don't use SASL (-x) and this is the password (-w Fl0Cabs) for the admin user who we are going to bind with
(-D cn=admin,dc=shadshed,dc=com) and delete this dn entry:

Have I complete mis-understood?

-- Mark Worsdall