Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 43298 invoked from network); 25 Oct 2007 13:04:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Oct 2007 13:04:17 -0000 Received: (qmail 85346 invoked by uid 500); 25 Oct 2007 13:03:49 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 84550 invoked by uid 500); 25 Oct 2007 13:03:47 -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 84538 invoked by uid 99); 25 Oct 2007 13:03:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 06:03:47 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pstavs@gmail.com designates 64.233.182.186 as permitted sender) Received: from [64.233.182.186] (HELO nf-out-0910.google.com) (64.233.182.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 13:03:50 +0000 Received: by nf-out-0910.google.com with SMTP id b2so412871nfb for ; Thu, 25 Oct 2007 06:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; bh=9sC74vNndgATi+M4qh0NQYwqE9WtOydEUZpF2L3lr7M=; b=Y2a/QYplQAhn7ztCf9tsOatKx0WUnXUCeBkBBiYefKMzQleDvRAlYxWii1ZxpN3/fB7ohjj0I7n1nVOqDCNp+AXSwgvlegRWAF0aC0kdX/vUCjNNztDt+TDFPuAzIyjC3JHl0rdKZuLL7RRbOmRZVSEAa0Ag05tAfu/W8swidPQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=RuZ10UDSAg11iofbX2chFONVw4pg7fbT3C0tkdgOQykYCRls6H3F+CL+U9xzYBDW5efiS4/yL8+JT/NRMHF1rq81Gn1QWaxbSy17oti96XYAiBJsD2ev/A3ZLSQnIo+1LHqrhPTrNIK8s6iheKjLz7oElMkTZwj5D0GC7CB59ww= Received: by 10.86.86.12 with SMTP id j12mr1355094fgb.1193317408652; Thu, 25 Oct 2007 06:03:28 -0700 (PDT) Received: from ?192.168.51.80? ( [213.207.142.98]) by mx.google.com with ESMTPS id c28sm3720048fka.2007.10.25.06.03.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 25 Oct 2007 06:03:28 -0700 (PDT) Message-ID: <4720941A.2050508@gmail.com> Date: Thu, 25 Oct 2007 16:03:22 +0300 From: Pedro User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Tomcat Mailing List Subject: JDBC Realm with case insensitive user name Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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. Thanks Peter --------------------------------------------------------------------- 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