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

RE: ldapdelete failing



Hi

> 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

The 'dn: ' bit is not part of the DN, try 

ldapdelete -v -x -W uid=spencer,ou=People,dc=example,dc=com 

Chris