This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NT Authentication in JSP

 
Katia Platonov
Greenhorn
Posts: 13
  • 0
  • 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.
 
Zac Roberts
Ranch Hand
Posts: 82
  • 0
  • 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
  • 0
  • 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.
 
Ruilin Yang
Ranch Hand
Posts: 150
  • 0
  • 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.
 
Vedhas Pitkar
Ranch Hand
Posts: 445
  • 0
  • 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.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • 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
  • 0
  • 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.
 
Jose Velarde
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try this:
 
Zac Roberts
Ranch Hand
Posts: 82
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic