[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: How to tag attributes ?
From:       Nils =?ISO-8859-1?Q?R=F8nhovde?= <nar () telenor ! net>
Date:       2003-09-30 6:06:06
[Download RAW message or body]

On Thu, 25 Sep 2003 14:28:33 +0200
Thomas MARCHESSEAU <tm@sitadelle.com> wrote:

> Hi All,
> 
> Specs:
> - Freeradius 0.9.1, on debian woody
> - 2 Radius servers , 2 radius proxys (sharing a virtual IP)
> 
> Everything is working fine except that i would like to add (or 
> increment) tags to freeradius attributes ie:
> 
> tm@lodoss:~$ ./radtest ipdyn@realm.net ipdyn 172.16.129.4 1812
> testing123 Sending Access-Request of id 186 to 172.16.129.4:1812
> User-Name = "ipdyn@realm.net"
> User-Password = "ipdyn"
> NAS-IP-Address = 172.16.69.1
> NAS-Port = 1812
> rad_recv: Access-Accept packet from host 172.16.129.4:1812, id=186, 
> length=188
> Session-Timeout = 86400
> Idle-Timeout = 180
> Tunnel-Medium-Type:0 = IP                                   
> <= 
> Here
> Tunnel-Server-Endpoint:0 = "172.18.21.3"                 <=
> here 
> etc ...
> Tunnel-Assignment-Id:0 = "tunnel-172.16.21.3"        
> Tunnel-Client-Auth-Id:0 = "LNS-NET7-1"
> Tunnel_Local_Name = "LNS-NET7-1"
> Tunnel-Type:0 = L2TP
> Tunnel-Server-Auth-Id:0 = "srv44-2.idf1.realm.net"
> Tunnel_Remote_Name = "srv44-2.idf1.realm.net"
> Proxy-State = 0x31
> Service-Type = Framed-User
> tm@lodoss:~$
> 
> The tag is 0 , but i would like to obtain something like that
> 
> Tunnel-Server-Endpoint:1 = "172.18.21.3"
> 
> Any idea ?
> 

Is there anything that prevents you from saying

ipdyn@realm.net	Password == "ipdyn"
	Tunnel-Server-Endpoint:0 = "172.18.21.3",
	Tunnel-Server-Endpoint:1 += "172.18.21.3",
	etc.
?
Or did you want the tag to change somewhere?

Or did I completely miss your question?

Actually, the RFC (2868) says that tag-numbering is 0x01 thru 0x1F, which means you \
should start on 1, although 0 is valid, meaning "no tag".

I'm not sure if there are radius clients, that are very particular about this.

-- 
best regards
Nils Ronhovde
Telenor


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic