Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

why I got [LDAP: error code 49 - Invalid Credentials]

807573Feb 24 2005 — edited Feb 24 2005
Hi, 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2005
Added on Feb 24 2005
2 comments
714 views