[RADIATOR] : Problems adding Dynamic Reply-Item Framed-IP-Address with AuthBy FREERADIUSSQL

Carlos Rodrigues carlos-j-rodrigues at ptinovacao.pt
Mon Apr 26 12:09:22 CDT 2010


Hi,

I'm not able to use a dynamic Reply Item for the Framed-IP-Address AVP, while using AuthBy FREERADIUSSQL.

I'm trying to create an Access-Accept response containing the Framed-IP-Address AVP, getting its value from the Access-Request packet.


·         In the Handler setup I have:
DynamicReply Framed-IP-Address


·         In the Reply-Items SQL table I have:


Id;username;attribute;op;value
1;"myUser";"Framed-Protocol";"+=";"PPP"
2;"myUser";"Service-Type";"+=";"Framed-User"
3;"myUser";"Framed-IP-Address";"+=";"%{Framed-IP-Address}"



·         When issuing an access-request to this specific user, the server shows:

*** Sending to 10.112.48.185 port 34610 ....

Packet length = 34
02 de 00 22 14 c3 f5 1a 1b a5 d8 eb 35 9c b5 c0
06 19 0d 40 08 02 07 06 00 00 00 01 06 06 00 00
00 02
Code:       Access-Accept
Identifier: 222
Authentic:  <20><195><245><26><27><165><216><235>5<156><181><192><6><25><13>@
Attributes:
     Framed-IP-Address = %{Framed-IP-Address}
     Framed-Protocol = PPP
     Service-Type = Framed-User


·         And the client shows:


Mon Apr 26 18:01:42 2010: DEBUG: Packet dump:
*** Received from 10.112.48.185 port 1812 ....
Code:       Access-Accept
Identifier: 222
Authentic:  <20><195><245><26><27><165><216><235>5<156><181><192><6><25><13>@
Attributes:
     Framed-IP-Address = UNKNOWN
     Framed-Protocol = PPP
     Service-Type = Framed-User

OK


So, it seems that the format_special is not being called for the Framed-IP-Address AVP.
After digging a bit in the AuthGENERIC.pm, I found an explicit exception in the appendUserReplyItems method, where this specific AVP is being ignored:

Line 2145: next if $name eq 'Framed-IP-Address';

Any special reason for this?
Is there an alternate method for accomplishing the purpose of setting a Framed-IP-Address Reply-Item value from the original Access-request  Framed-IP-Address AVP?


Thanks in advance,


[cid:image001.jpg at 01CAE568.9C6BCB30]








Carlos Rodrigues

Soluções para Redes de Dados
Desenvolvimento de Plataformas de Rede e Soluções Multimédia
tlf: 234403398
carlos-j-rodrigues at ptinovacao.pt<mailto:carlos-j-rodrigues at ptinovacao.pt>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open.com.au/pipermail/radiator/attachments/20100426/a3b0ff9d/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 12027 bytes
Desc: image001.jpg
Url : http://www.open.com.au/pipermail/radiator/attachments/20100426/a3b0ff9d/attachment-0001.jpg 


More information about the radiator mailing list