<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:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
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;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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=NL link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hi all,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>For a few years now, I use a freeradius/mysql
server for the authentication of users which logon with their dsl line. This
always went perfect till I tried to upgrade the machine from debian etch to
debian lenny. The freeradius version went from 1.1.3 to 2.0.4. When I upgraded
user couldn’t login anymore. I put on the debugging and saw an empty expand
which looks like:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_sql (sql): User found in radcheck table<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
expand: SELECT id,UserName,Attribute,Value,op FROM radreply WHERE Username =
'%{SQL-User-Name}' ORDER BY id -> SELECT id,UserName,Attribute,Value,op FROM
radreply WHERE Username =’<span style='color:red'>dsluser</span>’ ORDER BY id<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
expand: SELECT GroupName FROM usergroup WHERE UserName='%{SQL-User-Name}' ->
SELECT GroupName FROM usergroup WHERE UserName='<span style='color:red'>dsluser</span>'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
expand: -><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>After that is see the message:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_sql (sql): Error generating query;
rejecting user<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_sql (sql): Error processing groups;
rejecting user<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rlm_sql (sql): Released sql socket id: 62<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>++[sql] returns fail<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I didn’t change anything in the config file
which we used on the 1.1.3 version of freeradius. I guess something goes wrong
with the empty expand message in debug mode. <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>While searching for this error I found
something about the groupchecktable which we never used. In the config this option
is marked out:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>#groupcheck_table =
"radgroupcheck"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>And in the database is no table called
radgroupcheck because I never used it.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>So because of that there’s no query
at the “Authorization Queries” section related to the groupcheck
(authorize_group_reply_query)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>How can I get my freeradius working again
and simply don’t let it do a thing with the groupcheck (which I guess is the
problem of the empty expand which I see in debug mode)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>Met
vriendelijke groet,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>Frank
van den Diepstraten | system / networkengineer | Concepts ICT T +31 (0)76 522 </span><span
style='font-size:10.5pt;font-family:Consolas'>15 55 | F +31 (0)76 531 05 31 St.
Ignatiusstraat 265<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>4817
KK Breda, The Netherlands<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas'><a
href="http://www.concepts-ict.nl"><span lang=EN-US>www.concepts-ict.nl</span></a></span><span
lang=EN-US style='font-size:10.5pt;font-family:Consolas'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>Please
consider the environment before printing this e-mail.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas'>Disclaimer<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas'>De
informatie verzonden met dit e-mail bericht is uitsluitend bestemd voor de
geadresseerden gebruik van deze informatie door anderen dan de geadresseerde is
verboden. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking
van deze informatie aan derden is niet toegestaan. Concepts ICT en/of de aan
haar gelieerde ondernemingen staat niet in voor juiste en volledige
overbrenging van de inhoud van een verzonden e-mail, noch voor tijdige
ontvangst daarvan. U wordt verzocht, indien het bericht niet voor u bestemd is,
het retour te sturen naar de afzender. Wij wijzen iedere aansprakelijkheid af
in verband met mogelijke gevolgen en/of schade van een juiste en volledige
verzending en ontvangst van de inhoud van deze e-mail. Overeenkomsten en andere
verplichtingen kunnen Concepts ICT slechts binden indien deze schriftelijk, per
brief of telefax zijn aangegaan. Uit dit e-mail bericht kunnen derhalve geen
(contractuele) verplichtingen voor Concepts ICT ontstaan.<o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>