<div dir="ltr"><span style="font-size:13px">Hello,</span><div style="font-size:13px"><br></div><div style="font-size:13px">I've asked a question in another forum:</div><div style="font-size:13px"><br></div><div style="font-size:13px"><a href="http://serverfault.com/q/653228/255461" target="_blank">http://serverfault.com/q/653228/255461</a><br></div><div style="font-size:13px"><br></div><div style="font-size:13px">To avoid duplicating I'll post basic info here. I've configured a captive portal with ChilliSpot, everything was working fine. When a user makes a login, the router send request to the freeradius server.</div><div style="font-size:13px"><br></div><div style="font-size:13px">My issue is when I tried to change the accounting to MySQL. I've configured a group to use with al the users wher I added Session-TimeOut and Idle-TimeOut in the <b>radgroupreply</b>table.</div><div style="font-size:13px"><br></div><div style="font-size:13px">I have also in the <b>radcheck</b> table defined the users with their password, something like</div><div style="font-size:13px"><br></div><div style="font-size:13px"><br></div><blockquote class="gmail_quote" style="font-size:13px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">'Username', 'Chap-Password', ':=', 'password'<br>'Username', 'ClearText-Password', ':=', 'password'</blockquote><div style="font-size:13px"><br></div><div style="font-size:13px">I'm executing freeradius debugger and when I try to login with the user, freeradius fails and gives this message:</div><div style="font-size:13px"><br></div><div style="font-size:13px"><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:14px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;overflow:auto;width:auto;max-height:600px;word-wrap:normal;color:rgb(0,0,0);line-height:17.8048000335693px;background:rgb(238,238,238)"><code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;white-space:inherit;background-image:initial;background-repeat:initial">[pap] WARNING! No "known good" password found for the user. Authentication may fail because of this.
++[pap] returns noop
Found Auth-Type = CHAP
# Executing group from file /etc/freeradius/sites-enabled/default
+- entering group CHAP {...}
[chap] login attempt by "garcia" with CHAP password
[chap] Cleartext-Password is required for authentication
++[chap] returns invalid
Failed to authenticate the user.</code></pre></div><div style="font-size:13px"><br></div><div style="font-size:13px">I don't understand because there is a password defined in MySQL...</div><div style="font-size:13px"><br></div><div style="font-size:13px">Any help would be appreciated.</div></div>