hello,

I wonder if anyone can offer any help or advice.... 

I need to merge 3 separate Radius systems (post-acquisition fun), and wish to ideally 
achieve this without the use of huntgroups/realms and separate radiusd instances.
 
We have 3 separate dialup access numbers - one for each ISP. We are therefore able to 
determine which ISP the customer has called via the Called-Station-Id attribute 
received from the Terminal server. For non-technical reasons the telco will map all 
three numbers to the same physical circuits - so the use of freeradius' huntgroups 
will not be possible.

I want to be able to rewrite the username and/or additional attributes on any incoming 
packet, so that we can:

1 receive incoming packet
2 'preprocess' packet:  
        * Check Call-Station-Id.
        * Mangle User-Name attribute, and/or insert additional attributes according to 
Call-Station-Id
3 continue processing mangled packet

I've investigated the use of attr_rewrite module, but I'm not sure if I understand 
it's use correctly...

(radiusd.conf)

        #  Also if new_attribute is set to yes then a new attribute
        #  will be created containing the value replace with and it
        #  will be added to searchin (packet, reply or config).

...so how do I choose the name of the 'new_attribute' that will be created? Surely, if 
I'm able to set it's value, I must be able to assign it's name....? Is there any way 
this module can be used to 'test one attribute - to mangle another'? or perhaps 
there's another way to achieve this...? The docs for default modules seem to be pretty 
light...

Any help much apreciated,

Spencer

-- 
Systems engineer
Compass Communications
http://www.compass.net.nz

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

Reply via email to