File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes Authentication with LDAP using Java(URGENT) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Authentication with LDAP using Java(URGENT)" Watch "Authentication with LDAP using Java(URGENT)" New topic

Authentication with LDAP using Java(URGENT)

Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
I am running java application in Win2k advanced server which has LDAP in built. In my application, we have to login and whatever username & password(username and password is always of LDAP) we enter, we have to do authentication with LDAP using Context and DirContext api of java. We used Context, SECURITY_AUTHENTICATION with simple value. Now let's say I have user Administrator and password is admin. Now in my login page if I enter ADMINISTRATOR, still it's authenticate successfully. I don't want to allow this. I want to allow case sensitive only. How can I do that?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Moving to Security.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Leena Diwan
Ranch Hand

Joined: Jun 18, 2001
Posts: 351
I was also waiting for answer to this difficulty. Angela, could you find it out ? If yes, can you share it with us ?

I agree. Here's the link:
subject: Authentication with LDAP using Java(URGENT)
It's not a secret anymore!