[RADIATOR] Possibility to rewrite username into unique string (eg. out of request attributes like 'Calling-Station-Id')

Christian Meutes christian at errxtx.net
Mon Jan 14 09:12:56 UTC 2019


Hello Hugh,

On Mon, Jan 14, 2019 at 5:07 AM Hugh Irvine <hugh at open.com.au> wrote:

> Yes there are several ways of doing this - can you please send me an
> example trace 4 debug showing what you get in the access requests?
>
> And also tell me what you would like to use as the username?
>

currently I'm focusing on accounting-requests only and ideally it would use
the Calling-Station-Id as the local-part of the username while the realm
would be set to a fixed string so that the username "guest" would be
rewritten to something like "00:00:5E:00:53:12 at public-hotspot".

Mon Jan 14 03:07:18 2019
        User-Name = "guest"
        NAS-Port = 13
        NAS-IP-Address = 192.0.2.1
        Framed-IP-Address = 192.0.2.2
        Framed-IPv6-Prefix = 2001:DB8::/64
        Framed-IPv6-Prefix = 2001:DB8::/64
        Framed-IPv6-Prefix = fe80::/64
        NAS-Identifier = "some-ac"
        Airespace-WLAN-Id = 10
        Acct-Session-Id = "5c3b8019/00:00:5E:00:53:12/358203"
        NAS-Port-Type = Wireless-IEEE-802-11
        cisco-avpair = "audit-session-id=0a381bfb0006aca35c3b7fba"
        Acct-Authentic = Local
        Tunnel-Type = 0:VLAN
        Tunnel-Medium-Type = 0:802
        Tunnel-Private-Group-ID = 1620
        Event-Timestamp = 1547431627
        Acct-Status-Type = Alive
        Acct-Input-Octets = 50287684
        Acct-Input-Gigawords = 0
        Acct-Output-Octets = 1546124170
        Acct-Output-Gigawords = 0
        Acct-Input-Packets = 374646
        Acct-Output-Packets = 1200190
        Acct-Session-Time = 28338
        Acct-Delay-Time = 0
        Calling-Station-Id = "00:00:5E:00:53:12"
        Called-Station-Id = "00:00:5E:00:53:11:hotspot"
        Timestamp = 1547431638


Thanks!


Kind regards
-- 
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.open.com.au/pipermail/radiator/attachments/20190114/725eb37d/attachment.html>


More information about the radiator mailing list