Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-08 Thread André Warnier
Savoy, Melinda wrote: Andre, Without going into a lot of detail I was finally able to, via the help of an IIS engineer at Microsoft via our TAM, force NTLM authentication via IIS. What I learned is that by default IIS is NOT setup to accept NTLM authentication but only Kerberos.

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-08 Thread Savoy, Melinda
Andre - thanks for the reply. From: André Warnier [...@ice-sa.com] Sent: Tuesday, June 08, 2010 16:37 To: Tomcat Users List Subject: Re: How can I get the user value in the request forwarded to my Tomcat in my Java app? Savoy, Melinda wrote: Andre,

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-07 Thread Savoy, Melinda
dB, I did as you suggested and create another virtual directory on IIS with the same security setup and was able to get to the .HTM page in IIS without issue. Here is what Fiddler had to show on that: URL entered:http://servername/test Raw Headers tab: HTTP/1.1 200 OK Content-Length:

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-07 Thread André Warnier
Savoy, Melinda wrote: dB, I did as you suggested and create another virtual directory on IIS with the same security setup and was able to get to the .HTM page in IIS without issue. Here is what Fiddler had to show on that: URL entered:http://servername/test Ok, very good. Now,

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-04 Thread Savoy, Melinda
Thank you, Chris. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, June 03, 2010 4:14 PM To: Tomcat Users List Subject: Re: How can I get the user value in the request forwarded to my Tomcat in my Java app? -BEGIN PGP SIGNED

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-04 Thread Savoy, Melinda
Thanks Leo. I do have the Web Service Extension created. -Original Message- From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] Sent: Thursday, June 03, 2010 4:34 PM To: 'Tomcat Users List' Subject: RE: How can I get the user value in the request forwarded to my Tomcat in

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-04 Thread Savoy, Melinda
2 - questions (just because I'm not knowledgeable about IP address or TCP/IP ports etc or networking functionality). 1. Before moving to IIS, the Tomcat server was setup on port 80 but because IIS uses port 80 the Tomcat server in the server.xml was changed to 8080. Could this be the problem

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-04 Thread André Warnier
Savoy, Melinda wrote: 2 - questions (just because I'm not knowledgeable about IP address or TCP/IP ports etc or networking functionality). 1. Before moving to IIS, the Tomcat server was setup on port 80 but because IIS uses port 80 the Tomcat server in the server.xml was changed to 8080.

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-04 Thread Savoy, Melinda
Thanks Andre. Appreciate the explanation. I downloaded Fiddler as you suggested, and meant to send this in the earlier post. In the RAW HEADER I get the following when I enter this URL in my IE browser: http://scmisdev GET / HTTP/1.1 Accept: image/gif, image/jpeg, image/pjpeg,

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-04 Thread André Warnier
Hi. Unfortunately again, in this case we are operating at the limits of my own knowledge. So your idea of calling in a real Windows authentication specialist may be your best bet. See below for more details. Savoy, Melinda wrote: Thanks Andre. Appreciate the explanation. I downloaded

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-04 Thread dB .
Request: GET / HTTP/1.1 Authorization: Negotiate TlRMTVNTUAABB4IIogAFASgKDw== The browser is trying to get a page, and it sends a Negotiate token (it's short, so looks like NTLM). Response:

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-04 Thread André Warnier
dB. wrote: Request: GET / HTTP/1.1 Authorization: Negotiate TlRMTVNTUAABB4IIogAFASgKDw== The browser is trying to get a page, and it sends a Negotiate token (it's short, so looks like NTLM). Do you mean that the encoded portion of

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-04 Thread dB .
Yep. Let's see (using Waffle code - http://waffle.codeplex.com). String message = TlRMTVNTUAABB4IIogAFASgKDw==; byte[] messageBytes = Base64.decode(message); System.out.println(new String(messageBytes));

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-04 Thread André Warnier
dB. wrote: Yep. Let's see (using Waffle code - http://waffle.codeplex.com). String message = TlRMTVNTUAABB4IIogAFASgKDw==; byte[] messageBytes = Base64.decode(message); System.out.println(new String(messageBytes));

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread Savoy, Melinda
Question. Does the host in the workers.properties file need to match the HOST name in the server.xml file (see below): worker.scmisWorker.type=ajp13 worker.scmisWorker.host=scmis worker.scmisWorker.port=8009 Host name=scmis appBase=scmisapp unpackWARs=true autoDeploy=false

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread Savoy, Melinda
Let me try to answer Andre's questions below as well as communicate the results I got given the settings I have in the Windows 2003 server and ANY HELP or DIRECTION would be GREATLY APPRECIATED : I spoke to the guy who had setup our Tomcat server and he said that the SECOND HOST in our

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread Savoy, Melinda
I think I was finally able to TEST that my tomcat connector and its respective config files have been setup correctly. I think I have narrowed my problem to an IIS Directory Security ISSUE on jakarta. If anyone has run into this issue can you please respond to the following problem: In IIS I

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Melinda, On 6/3/2010 11:48 AM, Savoy, Melinda wrote: Does the host in the workers.properties file need to match the HOST name in the server.xml file (see below): worker.scmisWorker.type=ajp13 worker.scmisWorker.host=scmis

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Melinda, On 6/3/2010 1:52 PM, Savoy, Melinda wrote: I spoke to the guy who had setup our Tomcat server and he said that the SECOND HOST in our server.xml file was there to define the virtual host that is in our enterprise DNS (see settings below).

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread André Warnier
Hi. Now we're cooking ! But by the way, now this is also OT for this list, because your problem now seems to be between the browser and the webserver. First, please do the following : using Google, find the the IE plugin named Fiddler 2 and install it in your IE browser. That is a plugin

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-03 Thread Leo Donahue - PLANDEVX
I can't remember if anyone has already mentioned this. If so, my apologies. In IIS, do you have a Web Service Extension that is mapped to the isapi_redirect.dll, and that is set to allowed? -Original Message- From: Savoy, Melinda [mailto:melindasa...@texashealth.org] Sent: Thursday,

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-02 Thread André Warnier
Savoy, Melinda wrote: I finally got my Windows 2003 development box setup with the Tomcat Connector and IIS 6.0. The following is my setup: In the server.xml file I have the following in the HOST element: !-- Define the default virtual host Note: XML Schema validation will not

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-06-02 Thread Savoy, Melinda
Andre, First my apologies for forgetting my earlier setup within my Windows XP box and therefore as you say not learning what I had done previously. Second - this Windows 2003 server was already setup and the second host was created in order that the user could enter a URL of http://scmisdev

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-28 Thread Savoy, Melinda
Sorry, I had to leave the office yesterday after I answered part of Ranier's question. When I inserted the %request.getRemoteUser()% in the index.jsp page where that is the only thing on my page, I saw in my browser this error: Error The SCMWeb Inventory/Purchasing web application has

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-28 Thread Savoy, Melinda
One more interesting bit of info is that in my console in Eclipse when debugging my application I saw the following error regarding HTTP: 06:38:31,688 FAIL [HttpFilter] GET /SCMIS/index.jsp HTTP/1.1 accept: */* accept-language: en-us connection: Keep-Alive host: localhost user-agent:

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-28 Thread Rainer Jung
On 28.05.2010 13:43, Savoy, Melinda wrote: Sorry, I had to leave the office yesterday after I answered part of Ranier's question. When I inserted the%request.getRemoteUser()% in the index.jsp page where that is the only thing on my page, I saw in my browser this error: Error The SCMWeb

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-28 Thread Terence M. Bandoian
Hi, Melinda- It may be helpful to try that again with the JSP expression syntax: %= request.getRemoteUser() % Notice the '=' after the first '%'. -Terence Bandoian Savoy, Melinda wrote: Sorry, I had to leave the office yesterday after I answered part of Ranier's question. When I

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-28 Thread Savoy, Melinda
Thanks Terence. Actually I had that in my JSP page (with the =) but I did not put it below. My apologies. -Original Message- From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Sent: Friday, May 28, 2010 8:00 AM To: Tomcat Users List Subject: RE: How can I get the user value in the

How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-27 Thread Savoy, Melinda
In my isapi.log I am getting the user value (indicated below in BOLD RED font) from IIS using the Tomcat connector and my understanding from others on this list is that I should be able to get at that user value by using the HttpServletRequest getRemoteUser() however, I am getting a NULL value

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-27 Thread Rainer Jung
On 27.05.2010 16:42, Savoy, Melinda wrote: In my isapi.log I am getting the user value (indicated below in BOLD RED font) from IIS using the Tomcat connector and my understanding from others on this list is that I should be able to get at that user value by using the HttpServletRequest

RE: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-27 Thread Savoy, Melinda
Here is the AJP setting: !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 protocol=AJP/1.3 redirectPort=8443 tomcatAuthentication=false / -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Thursday, May 27, 2010 10:17 AM To: Tomcat Users

Re: How can I get the user value in the request forwarded to my Tomcat in my Java app?

2010-05-27 Thread Rainer Jung
On 27.05.2010 18:49, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Melinda, On 5/27/2010 11:19 AM, Savoy, Melinda wrote: Here is the AJP setting: !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 protocol=AJP/1.3 redirectPort=8443