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

From: Henrik Nordstrom <[email protected]>
Date: Thu, 05 Dec 2002 23:14:41 +0100

Would probably be a lot better to do something similar within
src/auth/basic/auth_basic.c, to force Basic authentication names to be
always lowercase.

And if you add a squid.conf directive (see src/cf.data.pre and
src/structs.h) then you can make a lot of users happy with this patch.

Regards
Henrik

"Waitman C. Gobble, II" wrote:

> How about this? I am no expert, and there could very well be a better
> way of doing.
>
> insert after line 135
>
> for (i=0;user[i]!='\0';i++)
> {
> user[i] = tolower(user[i]);
> }
>
> insert after line 142
>
> for (i=0;passwd[i]!='\0';i++)
> {
> passwd[i] = tolower(passwd[i]);
> }
>
> then build the thing
>
> ./configure --enable-basic-auth-helpers="NCSA" (...other options...)
>
> make
> su
> make install
>
> I didn't do the install bit or actually try it _live_, you can give it a
> shot. (I gotta finish a proposal and it is getting late.) I _DID_ do the
> configure and make and checked to see if there where any warnings or
> errors caused by the modifications.
>
> By the way, you could also consider teaching your kids to use usernames
> and passwords properly from the get-go. Please don't get me wrong, but
> my four year old son hasn't had any problem with it, we have so many
> machines around here that it was prudent to create a detached login
> account for him than to designate a particular machine for his use.
>
> Take care,
>
> --
> Waitman Gobble EMK Design Buena Park, California
> http://emkdesign.com +1.7145222528 [email protected]
> Public Key http://pgp.emkdesign.com
> Find an example http://freakinexample.com
>
> ------------------------------------------------------------------------
> Name: signature.asc
> signature.asc Type: application/pgp-signature
> Description: This is a digitally signed message part
Received on Thu Dec 05 2002 - 15:17:13 MST

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