Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 54134 invoked from network); 22 Feb 2009 15:25:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2009 15:25:45 -0000 Received: (qmail 43915 invoked by uid 500); 22 Feb 2009 15:25:33 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 43894 invoked by uid 500); 22 Feb 2009 15:25:33 -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 43882 invoked by uid 99); 22 Feb 2009 15:25:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Feb 2009 07:25:32 -0800 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=LOCALPART_IN_SUBJECT,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.53.69.26] (HELO mail.muzlink.com) (74.53.69.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Feb 2009 15:25:25 +0000 Received: from cpe-98-149-75-20.socal.res.rr.com ([98.149.75.20] helo=[192.168.1.103]) by mail.muzlink.com with esmtpa (Exim 4.63) (envelope-from ) id 1LbGCU-0004RB-Pd for users@tomcat.apache.org; Sun, 22 Feb 2009 09:25:02 -0600 Message-ID: <49A16E50.30907@compulsivecreative.com> Date: Sun, 22 Feb 2009 07:25:04 -0800 From: Alan Chaney User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Authenticating Users References: <49A06A0A.503@compulsivecreative.com> <49A06CD8.5080701@apache.org> <49A1678F.8010700@christopherschultz.net> In-Reply-To: <49A1678F.8010700@christopherschultz.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Christopher Schultz wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Mark, > I was the OP on this one. Mark just made a couple of suggestions. > On 2/21/2009 4:06 PM, Mark Thomas wrote: > >> 5. Patch DataSourceRealm >> >> 6. Make case sensitivity configurable and contribute your patch back to >> the ASF. >> > > 7. Use securityfilter to write your realm, and not be tied to Tomcat. > Had a brief look at 'securityfilter' - however we actually do require container managed security as we have several applications. Other alternative as previously mentioined is acegi. > 8. Many databases use case-insensitive string comparisons already. > Case-insensitive passwords (probably a bad idea!) Actually, in general, I agree that its a bad idea. However, each case has to be handled in the light of the actual users expectations. In the case of this specific application the users are artists who are generally extremely computer naive. We commonly get support enquiries "I can't log into my account" EVEN THOUGH we have sent them their account names and passwords because they are not correctly capitalizing their usernames or passwords. It is important to keep to keep the case of usernames because, as I said, they are artists, and the capitalization may have significance to them as part of their brand. The information on the site is publically available after it has been published. There is no commercial or sensitive information on the site. > will work if you > aren't hashing them. If you are, you'll have to lowercase them or something. > > Exactly. One problem for a general solution is that there are variations in the name of the 'lowercase' function between databases. So far, I've found that Postgres, MySQL and Oracle appear to support 'lower()' but M/SQL has it as tolower() (thanks again MS) > If you /are/ hashing them, you'll need to do a password migration where > anyone who changes their password gets it lowercased but passwords that > existed beforehand are still case-sensitive. You cannot avoid this, now > matter what your solution is. > In this specific case at the moment we aren't hashing them, but you raise a good general point about hashing which I'll have to think about. Regards Alan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org