Hi,<br>I've installed freeradius and it was working fine with users file authentication but when I add sql module ( freeradius's wiki->SQL_HOWTO ) when I try radtest with a username that is in db, authentication failed, and it's the out put of debug mode:
<br><br>rad_recv: Access-Request packet from host <a href="http://127.0.0.1:1026">127.0.0.1:1026</a>, id=168, length=147<br>        Service-Type = Framed-User<br>        Framed-Protocol = PPP<br>        User-Name = "n2test"
<br>        MS-CHAP-Challenge = 0x409da00bcdf49bf9ac057995c300f40b<br>        MS-CHAP2-Response = 0x24003e5162483aabe749b5dd4550f8e68be60000000000000000980209d9d70a472836d24769c794daa603e726bc8f27c73e<br>        Calling-Station-Id = "
<a href="http://192.168.1.4">192.168.1.4</a>"<br>        NAS-IP-Address = <a href="http://127.0.0.1">127.0.0.1</a><br>        NAS-Port = 0<br>  Processing the authorize section of radiusd.conf<br>modcall: entering group authorize for request 12
<br>  modcall[authorize]: module "preprocess" returns ok for request 12<br>  modcall[authorize]: module "chap" returns noop for request 12<br>  rlm_mschap: Found MS-CHAP attributes.  Setting 'Auth-Type  = mschap'
<br>  modcall[authorize]: module "mschap" returns ok for request 12<br>    rlm_realm: No '@' in User-Name = "n2test", looking up realm NULL<br>    rlm_realm: No such realm "NULL"<br>  modcall[authorize]: module "suffix" returns noop for request 12
<br>  rlm_eap: No EAP-Message, not doing EAP<br>  modcall[authorize]: module "eap" returns noop for request 12<br>    users: Matched entry DEFAULT at line 153<br>    users: Matched entry DEFAULT at line 172<br>    users: Matched entry DEFAULT at line 184
<br>  modcall[authorize]: module "files" returns ok for request 12<br>radius_xlat:  'n2test'<br>rlm_sql (sql): sql_set_user escaped user --> 'n2test'<br><span style="font-weight: bold; color: rgb(255, 0, 0);">
radius_xlat:  'SELECT id, UserName, Attribute, Value, op           FROM radcheck           WHERE Username = 'n2test'           ORDER BY id'</span><br style="font-weight: bold; color: rgb(255, 0, 0);"><span style="font-weight: bold; color: rgb(255, 0, 0);">
rlm_sql (sql): Reserving sql socket id: 2</span><br style="font-weight: bold; color: rgb(255, 0, 0);"><span style="font-weight: bold; color: rgb(255, 0, 0);">rlm_sql: Failed to create the pair: Unknown attribute "Cleartext-Password"
</span><br style="font-weight: bold; color: rgb(255, 0, 0);"><span style="font-weight: bold; color: rgb(255, 0, 0);">rlm_sql (sql): Error getting data from database</span><br style="font-weight: bold; color: rgb(255, 0, 0);">
<span style="font-weight: bold; color: rgb(255, 0, 0);">rlm_sql (sql): SQL query error; rejecting user</span><br style="font-weight: bold; color: rgb(255, 0, 0);"><span style="font-weight: bold; color: rgb(255, 0, 0);">rlm_sql (sql): Released sql socket id: 2
</span><br style="font-weight: bold; color: rgb(255, 0, 0);"><span style="font-weight: bold; color: rgb(255, 0, 0);">  modcall[authorize]: module "sql" returns fail for request 12</span><br style="font-weight: bold; color: rgb(255, 0, 0);">
<span style="font-weight: bold; color: rgb(255, 0, 0);">modcall: leaving group authorize (returns fail) for request 12</span><br style="font-weight: bold; color: rgb(255, 0, 0);">Finished request 12<br>Going to the next request
<br>--- Walking the entire request list ---<br>Waking up in 6 seconds...<br>--- Walking the entire request list ---<br>Cleaning up request 12 ID 168 with timestamp 471cb73a<br>Nothing to do.  Sleeping until we see a request.
<br><br>Why this happens? can this was for some missing information in my db?<br>