Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

NT Authentication in JSP

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I am using Tomcat-4.0.4 on NT4. I would like to do an NT authentication and I am not sure where to start.
Any help, pointers, etc. will be greatly appreciated.
Thank you.
Lana.
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is an NT authentication? Is it like using basic or form based authentication in a web app using JSP?
 
Katia Platonov
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, what I would like to do is grab user id from NT login and place it as a variable in a query in my JSP page.
 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case why do you need authentication for your JSP since you rely on NT Auth. as long as someone logged into NT you are OK.
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!I dont think that u can get the NT login in tomcat coz we tried it many times But finally ended up using a asp page which retrives the nt login & then redirects to a jsp page.Sorry 4 u.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Vedhas Pitkar:
Hi!I dont think that u can get the NT login in tomcat coz we tried it many times But finally ended up using a asp page which retrives the nt login & then redirects to a jsp page.Sorry 4 u.


Vedhas, please try to reduce the contractions in you posts. It just reduces understanding
thanks,
Dave.
 
Katia Platonov
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To Ruilin Yang:
Unfortunately I am not "ok". NT login ID matches an ID in one of the user tables. I need to prepopulate the form with user information by recognizing him in this manner: extract NT id, put it into a variable and query the user table where user_id = 'StringNTid';
Thanks for everybody's input.
Lana.
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try this:
 
Zac Roberts
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jose -
Great solution, I just tested on Tomcat with Windows NT and lo and behold up came my user name...
 
Vedhas Pitkar
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry David.But my boss roams around these days So i try to keeps the messages short & sweet.
Zac Have u tried it with different NT machines?Because i think that the user.name() returns the name of the machine on whose JVM the code is currently running.We tried it but didnt work for us.Different machines ,that is.
 
Zac Roberts
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did not try it on different machines yet but that is also a good point...
 
You guys haven't done this much, have ya? I suggest you study this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic