DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   Windows authentication using java (http://www.daniweb.com/forums/thread111077.html)

rajeshwarreddyt Feb 26th, 2008 11:49 pm
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.

stultuske Feb 27th, 2008 3:56 am
Re: Windows authentication using java
 
Quote:

Originally Posted by rajeshwarreddyt (Post 546418)
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

Phaelax Feb 27th, 2008 2:31 pm
Re: Windows authentication using java
 
What will this application be using for its source of authentication? Does it access network resources which require LDAP authentication?

stultuske Feb 28th, 2008 4:06 am
Re: Windows authentication using java
 
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

rajeshwarreddyt Feb 29th, 2008 1:06 am
Re: Windows authentication using java
 
yes using LDAP i have to do it .

Phaelax Feb 29th, 2008 12:30 pm
Re: Windows authentication using java
 
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.


All times are GMT -4. The time now is 1:36 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC