why I got [LDAP: error code 49 - Invalid Credentials]
807573Feb 24 2005 — edited Feb 24 2005Hi, I created a user "testuser" with the password of "test$$" in the directory. I can use this uid/password to query the directory server as the following:
./ldapsearch -D "uid=testuser,ou=people,o=myorg.com" -w test$$ -b "cn=config" -s sub "cn=*"
But in my java code if I use this uid/password to call the following:
DirContext ctx = new InitialDirContext(env);
I always got the exception:
Exception: javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials].
If I use a different password contains no "$" character, both the ldapsearch and java code are working fine. I am using iPlanet Directory server 5.1 SP3. Could you tell me what's wrong?
Thanks in advance for your help!
Louis