Re: Restriction by Group

Matthew N. Dodd (winter@jurai.net)
Thu, 25 Apr 1996 04:27:35 -0500 (CDT)

On Wed, 24 Apr 1996 igoldste@mum.neric.org wrote:
> want to have dial-in access via the portmasters. I know that I could
> explicitly enter each user into the users file, but the group is large
> and already identified with a unique GID.

I don't have a clean copy of the radius sorce on hand and my ISDN
is saturated right now, but I've added this to the unix_auth portion
of the radius code.

if (pwd->pw_gid == TELNET_ONLY) {
return(2);
}

Where TELNET_ONLY is defined earlier as some group that can't
use dialup... I'm returning 2 because the code that calls this
prints out custom error messages... Email me tomorrow when
I'm less laged (and more awake) and I'll give you a patch against
1.16 for this change.

Have a good one. (or a longer one if you're a Megazone)

| Matthew N. Dodd | winter@jurai.net | http://www.jurai.net/~winter |
| Technical Manager | mdodd@intersurf.net | http://www.intersurf.net |
| InterSurf Online | "Welcome to the net Sir, would you like a handbasket?"|