Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 77952 invoked by uid 500); 10 Apr 2001 11:11:21 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 77846 invoked from network); 10 Apr 2001 11:11:20 -0000 Received: from web11901.mail.yahoo.com (216.136.172.185) by h31.sny.collab.net with SMTP; 10 Apr 2001 11:11:20 -0000 Message-ID: <20010410111126.74396.qmail@web11901.mail.yahoo.com> Received: from [65.80.88.175] by web11901.mail.yahoo.com; Tue, 10 Apr 2001 04:11:26 PDT Date: Tue, 10 Apr 2001 04:11:26 -0700 (PDT) From: Keyton Weissinger Subject: JAAS and Tomcat: Looking for Help To: tomcat-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Greetings, I am attempting to create a JAAS-based set of custom tags. In doing so I have a checkPermission tag that takes the class name for a PrivilegedAction which attempts to read a file, foo.txt. I want only certain authenticated users to be able to run my PrivilegedAction. I have this 95% working, but the last 5% seems impossible. Please help. I have the jaas.policy file set to give my action the appropriate permissions when the correct Principal is authenticated. I have tried setting the tomcat.policy file so that the tag (and all of tomcat) has the permission to read the file. BUT IT STILL DOESN'T WORK! The only way I can make the thing work is to "grant" everything permission to read this file, but then I get the PrivilegedAction firing off regardless of my logged in principal. The stack trace indicates that something in the trace (left out for brevity) does not have java.io.FilePermission foo.txt read. What am I doing wrong? How can I have this action fired ONLY when the proper Principal is authenticated? Thank you in advance, ANYONE, who can shed some light on this. Keyton Weissinger __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/