<span class="Apple-style-span" style="border-collapse: collapse; ">Hi,<br>I have some problems with radius. I want to log the Value (an integer)<br>in my Vendor-Specific attribute to a mysql database.<br>I use %'{Vendor-Specific}' as variable to write it to the database but<br>
it always writes 0x25ce0000010630390000 to the database instead of the<br>Value.<br><br>At the system where you have to authenticate I put the following<br>variables into the radiuspacket:<br>Vendor-Id = 9678 --> is registered at<br>
<a href="http://beta.iana.org/assignments/enterprise-numbers%0AVendor-Type" target="_blank" style="color: rgb(42, 93, 176); ">http://beta.iana.org/assignments/enterprise-numbers<br>Vendor-Type</a> = 1<br>Vendor-Length = 6<br>
Vendor-Value = 12345<br><br>When I use radsniff at the radius server, I can see:<br>Packet number 1 has just been sniffed<br> From: <a href="http://10.0.2.1:55822" target="_blank" style="color: rgb(42, 93, 176); ">10.0.2.1:55822</a><br>
To: <a href="http://10.0.2.2:1813" target="_blank" style="color: rgb(42, 93, 176); ">10.0.2.2:1813</a><br> Type: Accounting-Request<br> Acct-Status-Type = Interim-Update<br> NAS-Port = 167772161<br>
Service-Type = Framed-User<br> Framed-IP-Address = 10.0.0.1<br> Acct-Input-Octets = 4249838<br> Acct-Output-Octets = 4056840<br> Acct-Input-Packets = 5326<br> Acct-Output-Packets = 2655<br>
NAS-Identifier = "bcrouter"<br> Acct-Session-Id = "167772161"<br> User-Name = "stage/stage"<br>------>Vendor-Specific = 0x25ce0000010630390000<------<br>Packet number 2 has just been sniffed<br>
From: <a href="http://10.0.2.2:1813" target="_blank" style="color: rgb(42, 93, 176); ">10.0.2.2:1813</a><br> To: <a href="http://10.0.2.1:55822" target="_blank" style="color: rgb(42, 93, 176); ">10.0.2.1:55822</a><br>
Type: Accounting-Response<br><br>If you disassamble 0x25ce0000010630390000:<br>(25ce)16 -> (9678)10<br>(00 0001)16 -> (1)10<br>(06)16 -> (6)10<br>30390000 -> (0000 3039)16 -> (12345)10<br><br>So this seems to be right. Somewhere it's logic that if you use<br>
%'{Vendor-Specific}' as variable in the query, that you will store<br>0x25ce0000010630390000. But how am I able to store 12345 into the<br>database? I also tried to use %'{KULeuven-Test}' and just %'{Test}',<br>
but those variables are just empty...<br><br>This is my dictionary:<br>VENDOR KULeuven 9678<br>BEGIN-VENDOR KULeuven<br>ATTRIBUTE KULeuven-Test 1 integer<br>
VALUE KULeuven-Test Test 12345<br>END-VENDOR KULeuven<br><br>Thank you in advance,<br>--<br><font color="#888888">Jeroen Vanderauwera</font></span><br>