Re: radius server that reads from a file other than /etc/passwd/shadow

Joe Portman (baron@aa.net)
Tue, 11 Jun 1996 02:30:59 -0700 (PDT)

On Mon, 10 Jun 1996, Jon Lewis wrote:

> On Mon, 10 Jun 1996, mickey wrote:
>
> > One more question--has anyone hacked radius to get passwords from files
> > other than /etc/passwd and /etc/shadow? This would be very helpful in
> > keeping a backup radius server and not worrying about giving all the users
> > access to the 2nd machine as well.
>
> I've not done this, but have thought about it. What about just creating
> a suitable dir structure, and then chroot'ing it so radiusd thinks it's
> reading /etc/passswd /etc/shadow, but is really reading /radiusd/etc/passwd?
>
> You'd need copies or hard links to such things as libs, /etc/services,
> and perhaps a few other things.

Here's the "easy" way:

1. First, compile your radiusd statically linked.
2. emacs /usr/etc/radiusd

^s/etc

Change it to whatever you like. :-)

Or.

1. Get source to getpwnam, getpwent, getspent, getspwnam (included in
shadow suite).

2. Change name of files to /etx/passwd /etx/shadow /etx/group, etc.

Recompile to suit.

Tastes great, less filling. :-)

Later,
-----------------------------------------------------------------------------
Joe Portman - Alternate Access Inc. Affordable, Reliable Internet
baron@aa.net Seattle: (206) 443-3408 Seattle: (206) 777-7777
Tacoma: (206) 927-6010 Federal Way: (206) 838-8457
Bellevue: (206) 455-8414 Olympia: (360) 458-7279
Enumclaw: (206) 862-9423 Black Diamond : (206) 288-8809
For free trial account: set modem to 8-n-1, login as "new"
For questions or support, call our voice line (206) 728-9585.
-----------------------------------------------------------------------------