dcsimg
Retrieving windows login id.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   keerthi_chilukuri
Posted On:   Thursday, July 3, 2008 09:51 AM

Hi , I need to retrieve the windows login id and have tried using jcifs. I have added the folowing lines to web.xml: NtlmHttpFilter jcifs.http.NtlmHttpFilter jcifs.http.domainController my IP Address NtlmHttpFilter *.do I used request.getRemoteUser()in the action class to retrieve the user name but it returns null. Please advise. Thanks in Advance.    More>>

Hi ,


I need to retrieve the windows login id and have tried using jcifs.


I have added the folowing lines to web.xml:




NtlmHttpFilter

jcifs.http.NtlmHttpFilter



jcifs.http.domainController

my IP Address







NtlmHttpFilter

*.do




I used request.getRemoteUser()in the action class to retrieve the user name but it returns null.



Please advise.


Thanks in Advance.

   <<Less

Re: Retrieving windows login id.

Posted By:   Stephen_McConnell  
Posted On:   Thursday, July 3, 2008 10:12 AM

You won't be able to get the windows login id from a Server Side program. This is a common sense security issue. Think about it. Would YOU want some server program finding out YOUR user id and password information??????


getRemoteUser is just going to get header information.


You probably will have to find some type of ActiveX (Java won't do it because of security issues) plugin.


Stephen McConnell

About | Sitemap | Contact