954,141 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Windows authentication using java

Hi Folks,
I want to use windows authentication for java application for eaxmple:

I have a application called ABC , now i want to apply windows authentication for this ABC appliation like when user hit the application URL the user should login automatically with out prompting any user name and password(BCZ he is already a windows authenticated user).can any one help me to solve this.

Regards,
Rajeshwar.

rajeshwarreddyt
Newbie Poster
8 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 
when user hit the application URL the user should login automatically with out prompting any user name and password(BCZ he is already a windows authenticated user)

then why the hell would you put a login and password in your program?? the fact that your pc is running doesn't necessarily means you are working on it. if it is an application that deals with sensitive data, you might want to reconsider a bit. I can understand the part where you want the user-name to be automatically set to the login in Windows, but dropping the prompt for a password, would be the same as: not giving the application to those who don't need it.

now, concerning your question, a couple of days ago, someone asked a similar question. you might get some help out of the response he got. it shows how you let your app automatically find the user that is logged in on Windows. Read me

stultuske
Posting Sensei
3,110 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 432
 

What will this application be using for its source of authentication? Does it access network resources which require LDAP authentication?

Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51
 

the info stored in your System. I've never really used it, so haven't looked into it, but knock yourself out and go check for yourself.

if there is no answer to be found on http://java.sun.com , Google will propably be able to help you out

stultuske
Posting Sensei
3,110 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 432
 

yes using LDAP i have to do it .

rajeshwarreddyt
Newbie Poster
8 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

Do some google searching for JNDI and see if you can come up with any resources to help out. I'm familiar with the concepts, but have never implemented them. So at this point, google will be your friend.

Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You