How to obtain the NT login name from the client

I need to run some Java to obtain the client side user Login name to autosign him/her onto my application. The application is three tier and the java needs to run on the browser client. The clients maybe any win platform but all will have logged in to the main network using typical windows domain logins. I am a neophyte at this so if anyone has any sample code the help will be much appreciated.

[411 byte] By [ppendle] at [2007-9-26 3:44:12]
# 1

I ran throught this a while back, I did not find a way to do what you are looking for smoothly. What I settled on was to collect information from the user and put it in an encrypted cookie. They only have to do it the first time they login and since they must login to the network to get to the applicaiton, then I know who they are when they are on.

morgalr at 2007-6-29 12:23:41 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 2
Look into the Session Tracking API
GreyListChoice at 2007-6-29 12:23:41 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 3
Did you triedSystem.getProperty("user.name");
v.pavlov at 2007-6-29 12:23:41 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 4
Thanks for taking the time to respond. I would like to look at the implementation of your solution. Do you have any sample code I can look at?
ppendle at 2007-6-29 12:23:41 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 5
I will try that today and see what that call returns.
ppendle at 2007-6-29 12:23:41 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 6
Which classes should I use to access this API? Do you have any sample code?
ppendle at 2007-6-29 12:23:41 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 7
That worked great thanks.
ppendle at 2007-6-29 12:23:41 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 8

Hello,

Can u please help me in this regard, i am also looking for the same, that is getting the userid from the client and logging him into an application. can u help me in this regard. I am using JSP. Please share with me if u have any sample code. I have been working on it from a week now but then with any success. CAn u attach the sample code to my mail id, suresh_9675@www.com

Thanking you in advance

Best Regards

Suresh

Suresh_9675 at 2007-6-29 12:23:41 > top of Java-index,Archived Forums,New To Java Technology Archive...