Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 54432FE92 for ; Wed, 20 Mar 2013 09:45:42 +0000 (UTC) Received: (qmail 68256 invoked by uid 500); 20 Mar 2013 09:45:38 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 68033 invoked by uid 500); 20 Mar 2013 09:45:38 -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 68002 invoked by uid 99); 20 Mar 2013 09:45:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 09:45:37 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Wed, 20 Mar 2013 09:45:30 +0000 Received: from [192.168.245.129] (montserrat.wissensbank.com [212.85.37.175]) (Authenticated sender: andre.warnier@ice-sa.com) by tor.combios.es (Postfix) with ESMTPA id 258FD3C280A for ; Wed, 20 Mar 2013 10:45:35 +0100 (CET) Message-ID: <51498524.40106@ice-sa.com> Date: Wed, 20 Mar 2013 10:45:08 +0100 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Manager App not working with Windows authentication enabled References: <2D02633C2E5AE142B114C189ADECE7CA1F1DF2@WPDOCEXCL02.ds.doc.state.or.us> <5148E68A.9090806@ice-sa.com> <2D02633C2E5AE142B114C189ADECE7CA1F1E50@WPDOCEXCL02.ds.doc.state.or.us> In-Reply-To: <2D02633C2E5AE142B114C189ADECE7CA1F1E50@WPDOCEXCL02.ds.doc.state.or.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Harris Mark R wrote: > Sorry, guess I was not clear enough. We are using Microsoft's IIS to front-end Tomcat, not the Apache HTTP server. Apache HTTP server is not an option for our environment. We would prefer to use the Windows authenticated user passed to Tomcat by IIS, but are open to anything that works reliably. > It's my turn to apologise. That was clear in your original post, I just misread that. It is the same however with IIS. If the user is authenticated by IIS, and you set tomcatAuthentication="false", then Tomcat will take the user-id from what the IIS/AJP module is passing on from IIS, and it will not redo the user authentication by himself (him being Tomcat). > As I said, our custom application is working great in this environment, but the manager app is not. We are having trouble associating the roles that the manager app is expecting with the authenticated user. We have tried altering the tomcat-users file just about every which way we could think of. Essentially we need any way to associate the authenticated user with the " "manager-gui" that the manager app is expecting. Would we need to implement a custom realm to make this work? > Yes, I think that you understand the issue correctly. Tomcat's standard "user access control" to an application is based on the concept of "roles". You tell Tomcat that any users who has a "role" xxx can access that application. So Tomcat needs a way, given the present user-id, to find out if that user-id has this "role" (isUserInRole() ?). Unfortunately, what AJP passes to Tomcat is only a user-id, not any kind of "roles" information that this user has. I suppose that Tomcat somehow must use a to get that kind of information, and I do not know if this Realm is capable of providing that information if it has not authenticated this user by itself. Maybe there is a way to tell Tomcat, for the manager application, to just check the user-id, and not the role ? I suppose that the right place to check would be the applicable Servlet Specification, in the web.xml/ paragraph. How do you do it for your other application, the one that works ? On a totally different track, if you want to use WIA anyway, you may want to have a look at Jespa, at http://www.ioplex.com. It's a totally different authentication and security approach. based on a servlet filter in Tomcat which authenticates the Windows user directly at the Tomcat level, not on the base of the id that IIS determines (and AJP passes on). Jespa is capable of "translating" the concept of Windows "users groups" into Tomcat "roles". One advantage of that approach is that you would have the various Tomcat "roles" managed at the same place as the other user-management functions (on the Windows domain AD server), and not have a different set of user information for Tomcat alone. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org