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

Re: ldapdelete "ldap_bind: Invalid DN syntax (34)"



Hi, Brian,

Yes, I looked at the manpage, but I still didn't get it. Maybe I'm too stupid.

I wanna delete the DN, i.e., "cn=Manager,dc=example,dc=com", I added into the directory.
So, according to the example in the manpage, I should just do

ldapdelete "cn=Manager,dc=example,dc=com"

"-x -w secret" is just for simple authentication. So, you mean I should do sth like

ldapdelete -D "dc=example,dc=com" "cn=Manager,dc=example,dc=com"

I tried, but still get ldap_bind: Invalid credentials (49)

Thanks a lot!
Tianyin



On Sun, Apr 15, 2012 at 6:43 PM, Brian Reichert <reichert@numachi.com> wrote:
On Sun, Apr 15, 2012 at 09:34:41PM -0700, Tianyin Xu wrote:
> thx for the reply, Brian!
>
> yes, you are right. Could you tell me why the following command is wrong?

Did you look at the manpage for ldapdelete?  E.g.:

 http://linux.die.net/man/1/ldapdelete

> ldapdelete "cn=Manager,dc=example,dc=com" -x -w secret
> ldap_bind: Invalid DN syntax (34)
>     additional info: invalid DN

The DN you with to bind with needs to be specified with '-D', just
as your correct invocation does.

> Thanks a lot!
> T

--
Brian Reichert                          <reichert@numachi.com>
BSD admin/developer at large