Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 87319 invoked from network); 20 May 2010 12:32:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 May 2010 12:32:43 -0000 Received: (qmail 51986 invoked by uid 500); 20 May 2010 12:32:39 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 51947 invoked by uid 500); 20 May 2010 12:32:39 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 51938 invoked by uid 99); 20 May 2010 12:32:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 12:32:39 +0000 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=AWL,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 12:32:32 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id 42C8E22623C for ; Thu, 20 May 2010 14:31:15 +0200 (CEST) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8ABK8cai0j0a for ; Thu, 20 May 2010 14:31:15 +0200 (CEST) Received: from [10.174.1.97] (unknown [89.204.137.97]) by tor.combios.es (Postfix) with ESMTPA id 07EF722623B for ; Thu, 20 May 2010 14:31:13 +0200 (CEST) Message-ID: <4BF52BB7.1090408@ice-sa.com> Date: Thu, 20 May 2010 14:31:51 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: aw@ice-sa.com User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Question on workers.properties file References: <28599711.post@talk.nabble.com> <4BF45BB5.6080808@ice-sa.com> <28615200.post@talk.nabble.com> <4BF4EA44.3060200@ice-sa.com> <28619632.post@talk.nabble.com> <4BF5188F.1080904@ice-sa.com> <28620069.post@talk.nabble.com> <4BF527E5.9030603@ice-sa.com> <28620453.post@talk.nabble.com> In-Reply-To: <28620453.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit savoym wrote: > The issue is that we do not currently use web.xml to set the particulars for > JCIFS. A wrapper was built by our former team lead who has now left the > company and Michael Allen had stated that we had to use the settings as he > has it in his doc in order for JESPA to work. As I stated previously, we > cannot rip out the security code that is currently there and just replace it > with the JESPA instructions because there is a lot more that the security > package does than just wrap JCIFS it has built-in security components for a > second layer of security against our legacy system. Ok, that's more understandable then. (And believe it or not, I am not a Jespa salesman ;-) ) I Rainer Jung is around, he may tell us if my assumptions are correct, that IIS+redirector also sends the IIS user-id to Tomcat, if there is any. If not, then tonight I might be able to send you a servlet filter to dump the HTTP headers of the requests sent by IIS to Tomcat, to see if there is a user-id in there somewhere. Unless you have already checked that ? > > Thanks again. > > awarnier wrote: >> Hi. >> I am a bit busy right now, and I'll have more time tonight to answer. >> But in short, if you are using jCIFS until now, then Jespa is really a >> drop-in replacement. You get the user-id via getRemoteUser() just the >> same way. Only web.xml changes, the application does not, as far as I >> know. >> But we'll look at the other possibilities later. >> For now, maybe make sure that IIS is /really/ authenticating the URLs >> that go to Tomcat. You may need to tell IIS something, for it to do that. >> >> >> savoym wrote: >>> My understanding is that IIS+ jk redirector is suppose to give us windows >>> authentication what I cannot find either on the IIS website or the Apache >>> Tomcat Connector website is HOW one gets to the authentication >>> properties. >>> I've read the HOW to get it setup but that is as far as it goes on the >>> Apache Tomcat Connector website. >>> >>> I am hoping that this is still a viable solution. We did look at Jespa >>> and >>> talked to Michael Allen extensively. Unfortunately, we have a security >>> paradigm that is underlying our entire web app. I have no time to >>> re-write >>> my app. Our app currently uses JCIFS but some of our users are using >>> Windows 7/IE 8 and because JCIFS does not work with NTLMv2 the web app no >>> longer comes up on Windows 7 that does not use NTLMv1. >>> >>> There in lies my dilemma. I appreciate again all the help. Hopefully >>> someone who has made this work will reply. >>> >>> Regards. >>> >>> >>> awarnier wrote: >>>> savoym wrote: >>>>> Thanks again for the reply. >>>>> >>>>> I do already have the tomcatAuthentication="false" setting as you >>>>> stated >>>>> below and I had tried the getRemoteUse() from the HttpRequestServlet >>>>> but >>>>> that unfortunately did not work unless I did something wrong. >>>>> >>>>> I will try again but I do not think that is working. Again, I >>>>> appreciate >>>>> the time and help. >>>>> >>>> No problem, that's why we're here. >>>> As mentioned earlier, I'm not too sure that this works with IIS and the >>>> mod_jk redirector for IIS. >>>> I am working on the assumption that it does the same thing as >>>> Apache/mod_jk : if Apache already has a user-id, then mod_jk forwards it >>>> to Tomcat. >>>> When in Tomcat the tomcatAuthentication="false" is set, Tomcat accepts >>>> this user-id from Apache/mod_jk instead of trying to get its own. >>>> Maybe IIS+ jk redirector does the same, maybe not. >>>> >>>> If not, there is another possibility : if IIS authenticates the user, it >>>> /might/ automatically add a HTTP header to the request, before even >>>> forwarding it to Tomcat through the redirector. >>>> If so, a servlet filter at the Tomcat level might be able to pick up >>>> this header, extract the user-id, and pass it to your webapp in a way it >>>> can use it. >>>> >>>> If all of that is negative, then you need something like the Jespa >>>> filter from ioplex. >>>> That filter /will/ authenticate the call on the base of the user's >>>> domain user-id, and set it in Tomcat, allowing your webapp to pick it up >>>> via getRemoteUser(). This is a certainty, not a guess. I use this >>>> often. >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>>> For additional commands, e-mail: users-help@tomcat.apache.org >>>> >>>> >>>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org