Re: ppp or slip (fwd)

Steven P. Crain (scrain@shore.net)
Mon, 30 Dec 1996 14:52:29 -0500 (EST)

-----BEGIN PGP SIGNED MESSAGE-----

On Mon, 30 Dec 1996, MegaZone wrote:

> Once upon a time Netlink Tech shaped the electrons to say...
> >I had the understanding that with RADIUS 1.16 you could prepend a P or a S
> >the the username in the users file and based on this RADIUS could
> >determine if it was a PPP or a SLIP, am I incorrect?
>
> If you have two entries - Puser and Suser - then they are two different
> usernames are far as RADIUS is concerned. But you won't be able to do
> UNIX authentication with those names.

If you add a line like this at the beginning of unix_pass() function in
radiusd.h, it will work with UNIX password:

#ifdef LOGIN_PFX
if(strchr(LOGIN_PFX,*ptr))
++ptr;
#endif

and define LOGIN_PFX to be "PS" or whatever you like (add
- -DLOGIN_PFX=\"PS\" to the options in the Makefile).

- ----------------------------------------------------------------------------
Steven P. Crain scrain@shore.net http://www.shore.net/~scrain
Shore.Net Unix Development and Administration
An ISP with Excellence in the Greater Boston Area.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Finger me for a public key.

iQB1AwUBMsgdgo0DAXSiDippAQEO9AL9EM+xTCVWOR0jpbx5qCXf5NIjyG4J6Vo6
TjRzfkz0J94Q4uF6zl0jr6WDbcOdgBCMUkqTzMGMdvYf7fxUO96HZNKwiw/wAp6h
CZpBYyDj0DQ8ktoEWgBaTy+zl6pHk8Qt
=jFjX
-----END PGP SIGNATURE-----