Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC362D532 for ; Fri, 24 Aug 2012 15:30:08 +0000 (UTC) Received: (qmail 15592 invoked by uid 500); 24 Aug 2012 15:30:07 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 15518 invoked by uid 500); 24 Aug 2012 15:30:07 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 15509 invoked by uid 99); 24 Aug 2012 15:30:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2012 15:30:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2012 15:30:06 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 554C6554C; Fri, 24 Aug 2012 15:29:46 +0000 (UTC) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: [Bug 53777] Ability to bundle JAAS Configuration in Webappp Date: Fri, 24 Aug 2012 15:29:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 7 X-Bugzilla-Component: Catalina X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: eolivelli@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=53777 --- Comment #3 from eolivelli --- Created attachment 29275 --> https://issues.apache.org/bugzilla/attachment.cgi?id=29275&action=edit Patch on JAASRealm (tomcat 7 trunk) I tried to write a patch against JAASREalm.java (don't know if it is the correct format) Patch is for Tomcat 7 trunk this is what is does: - adds "configfile" property (will be resolved as ClassLoader.getResource().toURI) to require the use of a custom JAAS Configuration file - instantiates a "sun" ConfigFile (using Reflection) to have a Configuration - uses the 4-args constructor of LoginContext (in order to use the custom configuration) - sets a work-around for a bug in Realm setup (parseClassNames) because sometimes that method is not called with a good contextclassloader -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org