<font color="#3333FF"><div><font class="Apple-style-span" color="#000000">Hi there,</font></div><div><font class="Apple-style-span" color="#000000"><br></font></div><div><font class="Apple-style-span" color="#000000">Thanks for your help.</font></div>
<div><br></div>>Does PAP work?</font><div><br></div><div>OK as i understand (correct me if i am wrong) no matter if I use MySql or users.cof file for validating the users, if i execute: </div>
<div><br></div><div><span style="font-family:courier, Tahoma, Arial, sans-serif;font-size:11px;color:rgb(64, 64, 64);line-height:18px"></span><i>$radtest sqltest testpwd localhost 1812 testing123</i></div>
<div><br></div><div>and the message i get is ( from both, the server terminal window, and the radtest terminal window):</div><div><br></div><div><i>Access-Accept</i></div><div><br></div><div>Means that PAP worked fine. If this is right, then i must say: yes PAP works.</div>
<div><br></div><div><font face="courier, Tahoma, Arial, sans-serif" size="3"><span style="font-size:11px;line-height:18px"><font face="arial"><span style="font-size:small;line-height:normal"><font color="#3333FF">></font><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><font color="#3333FF">Did you configure the "sql" module?</font></span></span></font></span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">i am not sure what you exactly mean with "sql module", but I can tell what i did configure for sql+freradius:
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">1- In <span class="Apple-style-span" style="border-collapse: separate; font-family: Verdana, Arial, sans-serif; font-size: 13px; line-height: 16px; ">/etc/freeradius/radiusd.conf i u<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: small; line-height: normal; border-collapse: collapse; ">ncommented the line "<span class="Apple-style-span" style="border-collapse: separate; font-family: monospace, Arial, sans-serif; font-size: 13px; line-height: 16px; white-space: pre; ">$INCLUDE sql.conf"</span></span></span></span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">2- Create a DB called "radius" and create a user called "radius" with full access to the just created DB</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">3- Load mysql schema and insert into radcheck table a user(the schema i used was /etc/freeradius/sql/mysql/schema.sql) </span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"> *NOTE: i just insert a user into radcheck table, i did not populate any other table</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">4- Configure /etc/freeradius/sql.conf with my just created DB parameters(server, login, password) and uncommented the line "<span class="Apple-style-span" style="border-collapse: separate; font-family: Tahoma, Verdana, Arial, Helvetica, 'Bitstream Vera Sans', sans-serif; font-size: 12px; line-height: 18px; ">readclients = yes"</span></span></font></div>
<div><font class="Apple-style-span" face="Tahoma, Verdana, Arial, Helvetica, 'Bitstream Vera Sans', sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;">5- Then uncommented the "sql" line for the following sections in the /etc/freeradius/sites/enabled/default file:</span></font></div>
<div><font class="Apple-style-span" face="Tahoma, Verdana, Arial, Helvetica, 'Bitstream Vera Sans', sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px; line-height: 18px;"> a) authorize</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"> b) accounting</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"> c) session</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"> d) post-auth</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">6- Ran a radtest, and everyhtin worked fine</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Did i aswered your question?</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><span style="font-size:13px"><font color="#3333FF">>Is the PEAP request for user "sqltest"?</font></span></span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">Yes, on the windows supplicant machine, i gave my credentials as follows:</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">Login: sqltest</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse">password: testpwd</span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">domain:</span></font></div>
<div><br></div><div>I leaved domain always blank because i have not configurated any domain yet.</div><div><br></div><div><font color="#3333FF">></font><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><font color="#3333FF"> If you take a step by step approach, it should be trivial to configure.</font></span></div>
<div><font color="#3333FF" face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><span style="font-size:13px"></span><font face="arial, sans-serif"><span style="border-collapse:collapse">Well, i did not test the server with users.conf file. Once freeradius was installed and working, i just jump to install and configure mysql and make the first radtest using both. The radtest worked just fine.</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">If you think that using the users.conf first could give me any clue about the erros i am having, i will not hesisate to test it.</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Any idea?</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Cheers</span></font></div>