Override using DEFAULT

2002-08-20 Thread Mark Hennessy

For the purposes of maintaining as small a users database as possible, I
wanted to know if it was possible for a specific DEFAULT record's reply
attributes to override any conflicting reply attributes of an individual
user entry?

Say I had the following user entries in the following format:

foo
Framed-Type = User,
Framed-Address = 192.168.1.17

bar
Framed-Type = User,
Framed-Address = 192.168.1.18

Here are the defaults:

DEFAULT Auth-Type := System, Framed-Protocol == PPP, Huntgroup-Name == local
Service-Type = Framed-User,
Framed-MTU = 1500,
Framed-Netmask = 255.255.255.255,
Framed-Compression = Van-Jacobson-TCP-IP,
Framed-Routing = None,
Idle-Timeout = 1200,
Session-Timeout = 129600

DEFAULT Auth-Type := System, Framed-Protocol == PPP, Huntgroup-Name == roaming
Service-Type = Framed-User,
Framed-MTU = 1500,
Framed-Address = 255.255.255.254,
Framed-Netmask = 255.255.255.255,
Idle-Timeout = 600,
Session-Timeout = 28800

I would want foo coming in from the roaming huntgroup to lose their
individually defined address and reply using the reply attribute under the
default entry for the roaming huntgroup instead.

--
 Mark P. Hennessy [EMAIL PROTECTED]


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: Override using DEFAULT

2002-08-20 Thread Kostas Kalevras

On Tue, 20 Aug 2002, Mark Hennessy wrote:

 For the purposes of maintaining as small a users database as possible, I
 wanted to know if it was possible for a specific DEFAULT record's reply
 attributes to override any conflicting reply attributes of an individual
 user entry?

 Say I had the following user entries in the following format:

 foo
   Framed-Type = User,
   Framed-Address = 192.168.1.17

 bar
   Framed-Type = User,
   Framed-Address = 192.168.1.18

 Here are the defaults:

 DEFAULT   Auth-Type := System, Framed-Protocol == PPP, Huntgroup-Name == local
 Service-Type = Framed-User,
 Framed-MTU = 1500,
 Framed-Netmask = 255.255.255.255,
   Framed-Compression = Van-Jacobson-TCP-IP,
   Framed-Routing = None,
 Idle-Timeout = 1200,
 Session-Timeout = 129600

 DEFAULT   Auth-Type := System, Framed-Protocol == PPP, Huntgroup-Name == roaming
 Service-Type = Framed-User,
 Framed-MTU = 1500,
 Framed-Address = 255.255.255.254,
 Framed-Netmask = 255.255.255.255,
 Idle-Timeout = 600,
 Session-Timeout = 28800

 I would want foo coming in from the roaming huntgroup to lose their
 individually defined address and reply using the reply attribute under the
 default entry for the roaming huntgroup instead.

 --
  Mark P. Hennessy   [EMAIL PROTECTED]

Just use the := operator instead of =

--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]  National Technical University of Athens, Greece
Work Phone: +30 10 7721861
'Go back to the shadow' Gandalf


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: Override using DEFAULT

2002-08-20 Thread Nick Davis

If you put Fall through = Yes on each of your users and then put the DEFAULTS 
below them in the users file, the DEFAULT will override what you have set per 
user. You might want to check out man 5 users for the proper usage of ==, 
:= in this instance!

If you have your users in mysql/postgresql? You could put the users in the sql 
table and then the Defaults in the users file and then have the users file 
parsed after the sql tables.


Nick

On Tuesday 20 August 2002 09:52, Mark Hennessy wrote:
 For the purposes of maintaining as small a users database as possible, I
 wanted to know if it was possible for a specific DEFAULT record's reply
 attributes to override any conflicting reply attributes of an individual
 user entry?

 Say I had the following user entries in the following format:

 foo
   Framed-Type = User,
   Framed-Address = 192.168.1.17

 bar
   Framed-Type = User,
   Framed-Address = 192.168.1.18

 Here are the defaults:

 DEFAULT   Auth-Type := System, Framed-Protocol == PPP, Huntgroup-Name ==
 local Service-Type = Framed-User,
 Framed-MTU = 1500,
 Framed-Netmask = 255.255.255.255,
   Framed-Compression = Van-Jacobson-TCP-IP,
   Framed-Routing = None,
 Idle-Timeout = 1200,
 Session-Timeout = 129600

 DEFAULT   Auth-Type := System, Framed-Protocol == PPP, Huntgroup-Name ==
 roaming Service-Type = Framed-User,
 Framed-MTU = 1500,
 Framed-Address = 255.255.255.254,
 Framed-Netmask = 255.255.255.255,
 Idle-Timeout = 600,
 Session-Timeout = 28800

 I would want foo coming in from the roaming huntgroup to lose their
 individually defined address and reply using the reply attribute under the
 default entry for the roaming huntgroup instead.

-- 
Nick Davis 
Associate Systems Administrator 
[EMAIL PROTECTED] 
Internet Exposure, Inc. 
http://www.iexposure.com  

(612)676-1946 
Web Development-Web Marketing-ISP Services

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html