ldapmodify returns Invalid Credentials

I have a peculiar problem with my SUN Directory Server 5.2 P4 deployment. I am able to login into the Admin console with the directory manager credentials. However when I using the same credentials for a ldapmodify operation it fails giving me a Invalid Credentials error.

$ ldapsearch -h <LDAPHost> -p <LDAPPort> -D "cn=Directory Manager" -w <password> -b uid=some_uid,ou=people,dc=example,dc=com objectclass=*

ldap_simple_bind: Invalid credentials

The access logs give a err=50 which means a Invalid password, but am using the right password.

I have mulitple instances of Directory Server running on this machine. Each Directory has a virtual IP assigned to it so that external clients can connect.

Thanks in Advance.

[774 byte] By [dmchda] at [2007-11-27 7:52:39]
# 1

By any chance, would the directory manager credentials contain any special, non-ascii, non-7bit character ?

The character set used by Java is unicode and transcoded in UTF-8

The ldapsearch tool uses the charset and locale specified by your environment. Which is probably not UTF-8...

Aa passwords are supposed to be treated as binary blobs by the directory server, and the clients are providing different representations of it, one works, the other ones don't.

Regards,

Ludovic.

ludovicpa at 2007-7-12 19:33:53 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
Thanks Ludovic. This indeed was the issue. I setup the locale environment properly on my local machine so as to use en_US.UTF8 charset, and ldap* clients started working as expected.
dmchda at 2007-7-12 19:33:53 > top of Java-index,Web & Directory Servers,Directory Servers...