Re: Shadow Passwords

Jon Lewis (jlewis@inorganic5.fdt.net)
Sun, 31 Aug 1997 11:52:23 -0400 (EDT)

On Sun, 31 Aug 1997, Heiko Schlittermann wrote:

> /*
> * Call getpwnam but cache the result.
> */
> struct passwd *rad_getpwnam(char *name)
> {
> static struct passwd *lastpwd;
> static char lastname[64];
>
> if (strncmp(name, lastname, 64) == 0)
>
> But this function isn't called if you have shadow passwords. (Wrong,

I looked at this briefly last night too. This function only caches 1
password struct...so the only way I could see it being a problem would be
if a new user tried to dial in before the account was open. Then that
user keeps trying to get in while nobody else it authenticating. The
cached null struct might keep him from getting in until someone else has
tried to login.

Is there really much point in caching 1 passwd entry?

------------------------------------------------------------------
Jon Lewis <jlewis@fdt.net> | Unsolicited commercial e-mail will
Network Administrator | be proof-read for $199/message.
Florida Digital Turnpike |
______http://inorganic5.fdt.net/~jlewis/pgp for PGP public key____