Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 91266 invoked from network); 25 Oct 2007 15:16:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Oct 2007 15:16:32 -0000 Received: (qmail 8887 invoked by uid 500); 25 Oct 2007 15:15:53 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 8857 invoked by uid 500); 25 Oct 2007 15:15:52 -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 8832 invoked by uid 99); 25 Oct 2007 15:15:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 08:15:52 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of p@pidster.com designates 87.106.82.221 as permitted sender) Received: from [87.106.82.221] (HELO s15243851.onlinehome-server.info) (87.106.82.221) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 17:16:38 +0000 Received: (qmail 2293 invoked from network); 25 Oct 2007 16:15:19 +0100 Received: from 87-194-39-44.bethere.co.uk (HELO phoenix.config) (87.194.39.44) by s15243851.onlinehome-server.info with SMTP; 25 Oct 2007 16:15:19 +0100 Message-ID: <4720B2E8.7090301@pidster.com> Date: Thu, 25 Oct 2007 16:14:48 +0100 From: Pid Reply-To: p@pidster.com Organization: Pid Inc User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: JDBC Realm with case insensitive user name References: <4720941A.2050508@gmail.com> <47209790.5030302@joedog.org> <47209976.7080608@gmail.com> In-Reply-To: <47209976.7080608@gmail.com> X-Enigmail-Version: 0.95.4 OpenPGP: id=0927AE57 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Pedro wrote: > Thanks for stating the obvious Tim, in 5.5 the 'server' directory is > supposed to be the correct place! the question is if the implementation > is valid. You referred to ClassNotFoundException's - his answer is therefore valid. Perhaps you can elaborate on when you're getting this exception if we're to help you. p > Tim Funk wrote: >> The dir structure changed from 5.5 to 6 so you need to place your >> files in different directories depending on the version. See the >> version specific docs details. >> >> >> -Tim >> >> Pedro wrote: >>> Hi all, >>> >>> I basically need to implement case insensitive user names, can this >>> be done with a servlet filter or do I need to subclass JDBC realm: >>> >>> public class CustomJdbcRealm extends JDBCRealm { >>> >>> public CustomJdbcRealm() { >>> super(); >>> } >>> public Principal authenticate(String username, String >>> credentials) { >>> return super.authenticate(username.toLowerCase(), credentials); >>> } >>> } >>> >>> And in server.xml: >>> >>> >>> I tried this approach but get class not found exceptions, I am using >>> tomcat6 in development and 5.5 in production. I package this class in >>> a jar and drop it in the $CATALENA_BASE/server/lib folder. >>> >> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org