Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 36969 invoked from network); 25 Oct 2007 21:31:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Oct 2007 21:31:16 -0000 Received: (qmail 45513 invoked by uid 500); 25 Oct 2007 21:30:52 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 45490 invoked by uid 500); 25 Oct 2007 21:30: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 45479 invoked by uid 99); 25 Oct 2007 21:30: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 14:30:52 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [204.127.192.81] (HELO rwcrmhc11.comcast.net) (204.127.192.81) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 23:31:36 +0000 Received: from [192.168.1.101] (c-68-50-0-179.hsd1.va.comcast.net[68.50.0.179]) by comcast.net (rwcrmhc11) with ESMTP id <20071025213028m11004j691e>; Thu, 25 Oct 2007 21:30:28 +0000 Message-ID: <47210AEF.1070402@christopherschultz.net> Date: Thu, 25 Oct 2007 17:30:23 -0400 From: Christopher Schultz User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: JDBC Realm with case insensitive user name References: <4720941A.2050508@gmail.com> In-Reply-To: <4720941A.2050508@gmail.com> X-Enigmail-Version: 0.95.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pedro, Pedro wrote: > 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: Er, before you get too far on this, check to see if your database already does this without you realizing that it does. For instance, MySQL does case-insensitive VARCHAR and CHAR lookups unless the column type is marked BINARY or you cast the type to BINARY in your SQL query. For instance, 'chris' = 'CHRIS' in MySQL inder normal circumstances. Primary and unique keys respect this behavior, too, so I can't have "chris" and "CHRIS" as two separate usernames in my user table where "username" is a UNIQUE key. You might be able to save yourself a lot of trouble. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHIQru9CaO5/Lv0PARAkV6AJ9eBvJFTb8HCA5lL/6iU17AVF4DyQCgoDWg TA5RHoInDsnxkDSqILJiYvI= =J3qJ -----END PGP SIGNATURE----- --------------------------------------------------------------------- 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