• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to retrieving windows userName and password  RSS feed

 
Ahmed Shaikh
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am working on project which include java,servlet and jsp technologies for developing an intranet based application.
Client requirement is that ,he need windows userName and password as a application login userName and password.
So, any please tell me how to retrieve windows userName and password and hoe to use it in intranet application login userName and password.

Thanx in advance
 
Sanju Thomas
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can windows login modules to get that information. please see javax.security.*, you may find a way there.
 
Paul Clapham
Sheriff
Posts: 22697
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I doubt that any API is going to return an unencrypted password. Far too much of a security risk.

Go here: http://jcifs.samba.org/ and follow the "JCIFS NTLM HTTP Authentication" link for a possible solution.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!