Re: small radiusd performance tweak

Brian C Hill (bchill@ucdavis.edu)
Thu, 6 Jun 1996 23:28:00 -0700 (PDT)

+-------------------------+
| From owner-portmaster-radius@livingston.com Thu May 23 02:00 PDT 1996
| Date: Thu, 23 May 1996 11:49:31 +0300 (GMT)
| From: "John W. Temples" <john@kuwait.net>
| To: portmaster-radius@livingston.com
| Subject: small radiusd performance tweak
|
| For all you radiusd hackers:
|
| In the routine unix_pass() in radiusd.c, there's an unnecessary call to
| getpwnam() if you're using shadow passwords. getpwnam() is called only
| to check that the password field is "x", which it always should be.
|
| getpwnam() is relatively expensive on a huge password file.
|
| --
| John W. Temples, III || Providing the first public access Internet
| Gulfnet Kuwait || site in the Arabian Gulf region
|
+-------------------------+

I know this thread is a little stale, but I never saw any
mention of the fact that AIX, OSF, Ultrix and DYNIX/ptx have a hashed
/etc/passwd option. (Maybe it isn't even worth mentioning). This
eliminates big search times for getpwnam(). SunOS 4&5, HP-UX 9&10 and
IRIX don't seem to have it, though. Or has someone found that they do?

____________________________________________________________________
/ Brian C. Hill bchill@ucdavis.edu (916) 753-0358 \
| Systems Programmer University of California, Davis |
| Graduate School of Management & GIS Center |