Hi,
Sorry for the newbie question, but I really cannot figure out the problem.
I just follow the "A Quick-Start Guide", what I did is build a example.ldif
as follows:
-------------------------example.ldif----------------
dn: dc=example,dc=com
objectclass: dcObject
objectclass: organization
o: Example Company
dc: example
dn: cn=Manager,dc=example,dc=com
objectclass: organizationalRole
cn: Manager
-----------------------------------------------------------
Then, using ldapadd to insert these entries:
ldapadd -x -D "cn=Manager,dc=example,dc=com" -f example.ldif -w secret
adding new entry "dc=example,dc=com"
adding new entry "cn=Manager,dc=example,dc=com"
Everything is fine.
*****
Then, I want to use ldapdelete to delete the entries I added just now. I
tried
ldapdelete "cn=Manager,dc=example,dc=com" -x -w secret
ldap_bind: Invalid DN syntax (34)
additional info: invalid DN
and, also, I tried
ldapdelete -D "cn=Manager,dc=example,dc=com" -x -w secret
but this time the client just hangs. I read the manuals and search on
google but still does not have idea.
my ldap.conf is as follows
database bdb
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
directory /usr/local/var/openldap-data
Could anyone take a look and tell me why? Thanks a lot!
-- Tianyin