Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

login and jsp  RSS feed

 
Todd Anderson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have built a web based tool for my company to use using jsp. I currently have a login screen for login and password and need this login information to determine which data to display. However, since we are on an intranet when someone clicks on internet explorer, it prompts the user for their intranet login/password. Since my application is only available through the intranet I was wanting to pull my applications login from this IE login, so that users dont have to log in. However, I do need to actually use this variable to determine the proper data to display. Is this possible, and if so, does anyone have anywhere to point me for information.
I guess bottom line is that I want access to the IE login variable.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know of any "IE" login variables. Are you sure you aren't talking about NT Authentication? That sounds more along the lines of what you are talking about. Please claraify this and we can persue your question further.
Also, posting the same question in multiple forums just makes it harder on us to answer your questions the best we can.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66204
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Todd,
Welcome to the Ranch!
There's no IE login as Gregg pointed out. And if it's not NT authentication is could be Apache or Tomcat managed authentication. What's your server setup?
hth,
bear
[ August 05, 2003: Message edited by: Bear Bibeault ]
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could be wrong, but it sounds to me you're using Basic Authentication, in which IE (or any other brower) will prompt you with a dialog box for username/password.
In that case try:
 
Todd Anderson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, thanks for the response. Sorry for the double post. I wasn't sure how it worked around here.
So to clarify, it is Basic Authentication that is set up throughout the intranet. I do believe that request.getRemoteUser(); is what I want to use. However, I am currently getting null back for this value. So let me give you a little background.
Web-based app using mySQL,Tomcat 4.1, jsp's.
I currently have an Authenticate servlet that I have been previously using from a login screen I created for the app. My boss has asked me to remove my login screen and just pull from the authentication that is already required and prompted whenever you access the intranet. I would assume this is standard Windows authentication. They want me to remove my login and password because they know that employees will use the same login and password they use for everything else, and would really rather not store this information in my app as well.
So what I am wanting to do, is force authentication if the user has not already authenticated. If they have authenticated, I just want to pull the login value and compare with my user database table to output specific information relative to that user and their department.
Now, with that said. I need to know I guess the things I need to do to accomplish this.
-Do I need to remove my Authenticate file altogether?
-Can I just call this getRemoteUser() in my Authenticate and go from there?
-Do I need to set up something in particular(tomcat or other) for getRemoteUser() to work?
Questions of this sort are what I am pondering? Are there other things I need to know that I am not thinking of?
Thanks for your help. I hope this is the background information you are looking for.
-Todd
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!