Re: [squid-users] ncsa_auth user ID is case-sensitive

From: Robert Collins <robertc@dont-contact.us>
Date: 06 Dec 2002 05:01:34 +1100

On Thu, 2002-12-05 at 04:30, Tom Stanley wrote:
> I am using ncsa_auth with squid. When I type my user ID and password in my
> browser, the user ID is case-sensitive. I am going to use this to restrict
> access for my kids, so being case-sensitive might be difficult for them. I
> think they will type their password exactly as I give it to them, but they
> probably won't be as careful with their name.
>
> Is there a version of ncsa_auth that is not case-sensitive? I am not a C
> programmer, but looking at the code, is there a way to make the hash_lookup
> be case-insensitive?

Not trivially, but you can easily do the following:
* make the username and password lowercase before you insert into the
hash table.
* Make the username and password squid gives you for checking lowercase
before doing the check.

Cheers,
Rob

Received on Thu Dec 05 2002 - 01:01:25 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:11:51 MST