[prev in list] [next in list] [prev in thread] [next in thread]
List: freeradius-users
Subject: Decoding Access Request Parameters
From: "Ratnesh Sinha" <ratnesh () 6dtech ! co ! in>
Date: 2011-12-27 14:46:29
Message-ID: 004201ccc4a4$a73d39f0$f5b7add0$ () 6dtech ! co ! in
[Download RAW message or body]
This is a multipart message in MIME format.
[Attachment #2 (multipart/alternative)]
This is a multipart message in MIME format.
Hi,
I am using FREERADIUS v.2.1.12
I am getting the following attributes in Access Request from Radius Client:
ATTRIBUTE User-Name 1 string
ATTRIBUTE User-Password 2 string
ATTRIBUTE NAS-IP 4 ipaddr
ATTRIBUTE NAS-Port 5 integer
ATTRIBUTE Service-Type 6 integer
ATTRIBUTE Prepaid-acct-Capability 91 octets
ATTRIBUTE Prepaid-Acct-Quota 90 octets
ATTRIBUTE Session-Termination-Capability 88 integer
ATTRIBUTE Calling-Station-ID 31 string
ATTRIBUTE Correlation-Id 44 string
I am getting the following printed on the radius server console:
rad_recv: Access-Request packet from host 127.0.0.1 port 47213, id=2,
length=195
User-Name = "testuser"
Vendor-Specific = 0x0001869f010a7465737475736572
Vendor-Specific = 0x0001869f020a77656c636f6d6531
Vendor-Specific = 0x0001869f04067f000001
Vendor-Specific = 0x0001869f0506000011d7
Vendor-Specific = 0x0001869f060600000008
Vendor-Specific = 0x0001869f5b071234567890
Vendor-Specific = 0x0001869f580600000001
Vendor-Specific = 0x0001869f1f0c39383830323136313434
Vendor-Specific = 0x0001869f2c0c31323334353637383930
User-Password = "welcome1"
Message-Authenticator = 0x728dfb62b5b0ff17703c64ac1b97d6da
Pl. help me out how to get these attributes in my C program rlm module.
Regards,
Ratnesh
[Attachment #5 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" \
CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 \
(filtered medium)"><style><!-- /* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p \
class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am using FREERADIUS \
v.2.1.12<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I \
am getting the following attributes in Access Request from Radius \
Client:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p \
class=MsoNormal>ATTRIBUTE \
User-Name \
1 string <o:p></o:p></p><p \
class=MsoNormal>ATTRIBUTE \
User-Password \
2 string<o:p></o:p></p><p \
class=MsoNormal>ATTRIBUTE \
NAS-IP \
4 ipaddr<o:p></o:p></p><p \
class=MsoNormal>ATTRIBUTE \
NAS-Port \
5 \
integer<o:p></o:p></p><p \
class=MsoNormal>ATTRIBUTE \
Service-Type \
6 integer<o:p></o:p></p><p \
class=MsoNormal>ATTRIBUTE \
Prepaid-acct-Capability \
91 octets<o:p></o:p></p><p \
class=MsoNormal>ATTRIBUTE \
Prepaid-Acct-Quota \
90 octets<o:p></o:p></p><p \
class=MsoNormal>ATTRIBUTE \
Session-Termination-Capability 88 \
integer<o:p></o:p></p><p \
class=MsoNormal>ATTRIBUTE \
Calling-Station-ID \
31 string<o:p></o:p></p><p \
class=MsoNormal>ATTRIBUTE \
Correlation-Id \
44 string<o:p></o:p></p><p \
class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am getting the following \
printed on the radius server console:<o:p></o:p></p><p \
class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>rad_recv: Access-Request \
packet from host 127.0.0.1 port 47213, id=2, length=195<o:p></o:p></p><p \
class=MsoNormal> User-Name = \
"testuser"<o:p></o:p></p><p \
class=MsoNormal> Vendor-Specific = \
0x0001869f010a7465737475736572<o:p></o:p></p><p \
class=MsoNormal> Vendor-Specific = \
0x0001869f020a77656c636f6d6531<o:p></o:p></p><p \
class=MsoNormal> Vendor-Specific = \
0x0001869f04067f000001<o:p></o:p></p><p \
class=MsoNormal> Vendor-Specific = \
0x0001869f0506000011d7<o:p></o:p></p><p \
class=MsoNormal> Vendor-Specific = \
0x0001869f060600000008<o:p></o:p></p><p \
class=MsoNormal> Vendor-Specific = \
0x0001869f5b071234567890<o:p></o:p></p><p \
class=MsoNormal> Vendor-Specific = \
0x0001869f580600000001<o:p></o:p></p><p \
class=MsoNormal> Vendor-Specific = \
0x0001869f1f0c39383830323136313434<o:p></o:p></p><p \
class=MsoNormal> Vendor-Specific = \
0x0001869f2c0c31323334353637383930<o:p></o:p></p><p \
class=MsoNormal> User-Password = \
"welcome1"<o:p></o:p></p><p \
class=MsoNormal> Message-Authenticator = \
0x728dfb62b5b0ff17703c64ac1b97d6da<o:p></o:p></p><p \
class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Pl. help me out how to get \
these attributes in my C program rlm module.<o:p></o:p></p><p \
class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Regards,<o:p></o:p></p><p \
class=MsoNormal>Ratnesh<o:p></o:p></p></div></body></html>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic