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

Re: ldapdelete failing



Hey, thanks!

 Well I had to add my admin login to get it to work, but the info you gave me got it solved!

[root@ldap01:~/ldap] #ldapdelete -v -x  'uid=spencer,ou=People,dc=jokefire,dc=com' -D cn=admin,dc=jokefire,dc=com -W
ldap_initialize( <DEFAULT> )
Enter LDAP Password: 
deleting entry "uid=spencer,ou=People,dc=jokefire,dc=com"

SUCCESS!!! Really appreciate the help!

Tim


On Sat, Mar 8, 2014 at 2:56 PM, Chris Card <ctcard@hotmail.com> wrote:
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                                    



--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B