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.
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.
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 ]
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
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop