Re: A Good Way To Handle Things Using DEFAULT

Evan Champion (evanc@synapse.net)
Mon, 04 Aug 1997 12:03:21 -0400

Michael W. Lucas wrote:
> Out of curiosity, does anyone know if something like this would work:
>
> DEFAULT1 Auth-Type = system, Group = "isdn"
> .....
>
> DEFAULT2 Auth-Type = system, Group = "fiftysixk"
> ...
>
> DEFAULT3 Auth-Type = system, Group = "ppp"
> ....

Yup, that should work just fine.

Now that I've found the Group attribute, I'm working on converting over
our existing stuff. I was just thinking that a way to use have generic
configurations might be interesting. Here's what I mean:

evanc Auth-Type = System
Framed-IP-Address = 10.0.0.1,
Framed-IP-Netmask = 255.255.255.0,
Include = ISDN2NOIDLE

ISDN2NOIDLE Auth-Type = Reject
Service-Type = Framed-User,
Framed-Protocol = PPP,
Framed-Compression = None,
Framed-Routing = None,
Framed-MTU = 1500,
Port-Limit = 2

It's almost like the termcap stuff, in that you have a specialised
configuration that just sets what it needs, and then hands off the rest
to a more generic configuration.

I think that would actually make maintaining the users file directly (or
a file in users file-format) a viable solution. I quite like the users
file format for editing because it's very explicit so there's very
little chance for error, but without something like an include it's just
too much in a record to maintain.

Evan