Re: Converting login user IDs to lowercase

Ed Longstrom (edl@rock.spectra.net)
Thu, 17 Oct 1996 06:11:41 -0400 (EDT)

I think C has tolower(); which will convert
uppercase to lowercase.

or
int lower(int c)
{
if (c >='A' && c <= 'Z')
return(c + 'a' - 'A';
else
return(c);
}

ala Dernighan and Richie, I believe.

Ed

-------------------------------------------
| e-mail: elongstr@spectra.net |
| WWW: http://www.spectra.net/~elongstr |
| Voice: 607-798-7300 |
| Fax: 607-798-8305 |
| Data: |
-------------------------------------------

On Thu, 17 Oct 1996, Scott Crittenden wrote:

> Greetings!
>
> Has anyone hacked radius to convert the user supplied User ID to
> lowercase before trying to look it up in the users file and/or get the
> password out of /etc/passwd? (My C ability is rather limited, else I'd do
> it myself)
>
> ______________________________________________________________________________
> Scott Crittenden scott@intercomm.com, root@intercomm.com,
> InterComm Internet Services scott@megasystem.com
> System Administrator Voice: 702.353.2600
>