Hi
The 'dn: ' bit is not part of the DN, try
> I'm trying to delete an entry in my ldap database. But when issuing this command I am getting an error:
>[root@ldap01:~/ldap] #ldapdelete -v -x 'dn: uid=spencer,ou=People,dc=example,dc=com' -D cn=admin,dc=example,dc=com -W
>ldap_initialize( <DEFAULT> )
>Enter LDAP Password:
>deleting entry "dn: uid=spencer,ou=People,dc=example,dc=com"
>ldap_delete: Invalid DN syntax (34)
> additional info: invalid DN
ldapdelete -v -x -W uid=spencer,ou=People,dc=example,dc=com
Chris