• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to obtain NT User Information in J2EE

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Marshal
Posts: 28175
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic