<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 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</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=Section1>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Hello all,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I recently got Freeradius with MS SQL to work together. But there
is still one thing to be completed, the IP Pool thing.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I put Pool-Name and it value in radgroupcheck table in MS
SQL. I have Pool-Name set up in radiusd.conf.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I test, user get authenticated by username/password, but no
IP address is assigned. Here is the error:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>+- entering group post-auth<o:p></o:p></p>
<p class=MsoNormal>rlm_ippool: Could not find Pool-Name attribute.<o:p></o:p></p>
<p class=MsoNormal>++[main_pool] returns noop<o:p></o:p></p>
<p class=MsoNormal>rlm_sql (sql): Processing sql_postauth<o:p></o:p></p>
<p class=MsoNormal> expand: %{User-Name} -> easyuser<o:p></o:p></p>
<p class=MsoNormal>rlm_sql (sql): sql_set_user escaped user --> 'easyuser'<o:p></o:p></p>
<p class=MsoNormal>++[sql] returns noop<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I don’t know where should I put Pool-Name in
rlm_ippool? Or something related to group post-auth? But I did find anything config
file about it.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>With another method, which is that I put Pool-Name and its
value in Radcheck table in MS SQL, everything works. User gets authenticated
and gets an IP address from the pool.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Can anyone shed lights on it? Thanks in advance<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Here is my config in MS SQL<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><b><u>Usergroup Table:<o:p></o:p></u></b></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>id |
UserName |
GroupName |<o:p></o:p></p>
<p class=MsoNormal>+------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+<o:p></o:p></p>
<p class=MsoNormal>| 1 |
easyuser | secretary
|<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><b><u>Radcheck table:<o:p></o:p></u></b></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>id | UserName |
Attribute | Value
|
op|<o:p></o:p></p>
<p class=MsoNormal>+------------------------+-----------------------------------------------------------------+---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+<o:p></o:p></p>
<p class=MsoNormal>| 1 |
easyuser | Cleartext-Password
|
easypass
| :=|<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><b><u><o:p><span style='text-decoration:none'> </span></o:p></u></b></p>
<p class=MsoNormal><b><u>Radgroupcheck table:<o:p></o:p></u></b></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>id |
GroupName |
Attribute |
Value
|
op|<o:p></o:p></p>
<p class=MsoNormal>+------------------------+-----------------------------------------------------------------+---------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---+<o:p></o:p></p>
<p class=MsoNormal>| 1 | secretary
| Pool-Name | main_pool
|
:=|<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=FR-CA><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=FR-CA><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=FR-CA><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=FR-CA><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=FR-CA><o:p> </o:p></span></p>
</div>
</body>
</html>