Two Laptop Bag*
The moose likes EJB and other Java EE Technologies and the fly likes How to obtain NT User Information in J2EE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to obtain NT User Information in J2EE" Watch "How to obtain NT User Information in J2EE" New topic
Author

How to obtain NT User Information in J2EE

Thiago Souza
Greenhorn

Joined: Mar 13, 2008
Posts: 2
Hi people! G'day to y'all!

I have a doubt about how to get the NT Domain and user name of the user's local machine when acessing a J2EE Application. We need to call a WebService on a Filter every time a request is issued for this application, and two of the web service parameters are the NT domain and username the user is logged on his machine (not on the application itself, request.getRemoteUser() does not work here...). I have tried using JCifs but does not work here. Can you help me to find out how to get this information on the HTTP Headers, or in another place?

Thanks a lot!
Thiago
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18114
    
    8

I would say, if JCIFS doesn't work then you are out of luck. Perhaps you could put some more effort into making it work?
Thiago Souza
Greenhorn

Joined: Mar 13, 2008
Posts: 2
Thanks for the reply Paul.

I will try harder to make it work. For now, it is asking me for username and password whenever i activate the NtlmHttpFilter, doesn't do it transparently.
I could also try to figure out what custom mechanism could i develop. However, i don't know where to start. Should i try to extract this information from cookies, Http Headers? You see, i don't have a clue to where this information is being passed when the HTTP Request is made, if it is passed at all.

If you have some pointers to some documents or resources where i can better understand the availability of NT user data through HTTP with J2EE, i would be very grateful. If someone has been there before, please let me know...

Thanks a lot!
Thiago
[ March 17, 2008: Message edited by: Thiago Souza ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to obtain NT User Information in J2EE
 
Similar Threads
NT-Authentication on WebLogic
NT login - triggered by Java App
NT domain login and password
Check user of NT domain or active directory in servlet?
Salary details for 2.4 yrs experience in USA