Hello, I was wondering if anyone has experience with freeradius and mysql? I can connect to the radius server using root/password but I get rejected when I use an account from the database. Here is some debugging info from the command line, and further down is some information from the log file... :) Thanks for any and all ###radiusd -sfxxyz -l stdout############################################ Nothing to do. Sleeping until we see a request. rad_recv: Access-Request packet from host 10.0.17.67:1919, id=18, length=46 User-Name = "csanta" User-Password = "cs" modcall: entering group authorize modcall[authorize]: module "preprocess" returns ok rlm_chap: Could not find proper Chap-Password attribute in request modcall[authorize]: module "chap" returns noop modcall[authorize]: module "mschap" returns notfound rlm_realm: No '@' in User-Name = "csanta", looking up realm NULL rlm_realm: No such realm NULL modcall[authorize]: module "suffix" returns noop radius_xlat: 'csanta' rlm_sql (sql): sql_set_user escaped user --> 'csanta' radius_xlat: 'SELECT id,UserName,Attribute,Value,op FROM radcheck WHERE Username = 'csanta' ORDER BY id' rlm_sql (sql): Reserving sql socket id: 4 radius_xlat: 'SELECT radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value,radgroupcheck.op FROM radgroupcheck,usergroup WHERE usergroup.Username = 'csanta' AND usergroup.GroupName = radgroupcheck.GroupName ORDER BY radgroupcheck.id' radius_xlat: 'SELECT id,UserName,Attribute,Value,op FROM radreply WHERE Username = 'csanta' ORDER BY id' radius_xlat: 'SELECT radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgroupreply.Value,radgroupreply.op FROM radgroupreply,usergroup WHERE usergroup.Username = 'csanta' AND usergroup.GroupName = radgroupreply.GroupName ORDER BY radgroupreply.id' rlm_sql (sql): Released sql socket id: 4 modcall[authorize]: module "sql" returns ok users: Matched DEFAULT at 152 modcall[authorize]: module "files" returns ok modcall: group authorize returns ok rad_check_password: Found Auth-Type System auth: type "System" modcall: entering group authenticate modcall[authenticate]: module "unix" returns notfound modcall: group authenticate returns notfound auth: Failed to validate the user. Login incorrect: [csanta/cs] (from client localhost port 0) Delaying request 5 for 1 seconds Finished request 5 Going to the next request --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Sending Access-Reject of id 18 to 10.0.17.67:1919 Waking up in 4 seconds... --- Walking the entire request list --- Cleaning up request 5 ID 18 with timestamp 3e5e59ee Nothing to do. Sleeping until we see a request. rad_recv: Access-Request packet from host 10.0.17.67:1920, id=19, length=44 User-Name = "root" User-Password = "1b2i3lzlyyx" modcall: entering group authorize modcall[authorize]: module "preprocess" returns ok rlm_chap: Could not find proper Chap-Password attribute in request modcall[authorize]: module "chap" returns noop modcall[authorize]: module "mschap" returns notfound rlm_realm: No '@' in User-Name = "root", looking up realm NULL rlm_realm: No such realm NULL modcall[authorize]: module "suffix" returns noop radius_xlat: 'root' rlm_sql (sql): sql_set_user escaped user --> 'root' radius_xlat: 'SELECT id,UserName,Attribute,Value,op FROM radcheck WHERE Username = 'root' ORDER BY id' rlm_sql (sql): Reserving sql socket id: 3 rlm_sql (sql): User root not found in radcheck radius_xlat: 'SELECT radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value,radgroupcheck.op FROM radgroupcheck,usergroup WHERE usergroup.Username = 'root' AND usergroup.GroupName = radgroupcheck.GroupName ORDER BY radgroupcheck.id' radius_xlat: 'SELECT radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgroupreply.Value,radgroupreply.op FROM radgroupreply,usergroup WHERE usergroup.Username = 'root' AND usergroup.GroupName = radgroupreply.GroupName ORDER BY radgroupreply.id' rlm_sql (sql): User root not found in radgroupcheck rlm_sql (sql): User not found rlm_sql (sql): Released sql socket id: 3 modcall[authorize]: module "sql" returns notfound users: Matched DEFAULT at 152 modcall[authorize]: module "files" returns ok modcall: group authorize returns ok rad_check_password: Found Auth-Type System auth: type "System" modcall: entering group authenticate modcall[authenticate]: module "unix" returns ok modcall: group authenticate returns ok Login OK: [root/1b2i3lzlyyx] (from client localhost port 0) Sending Access-Accept of id 19 to 10.0.17.67:1920 Finished request 6 Going to the next request --- Walking the entire request list --- Waking up in 6 seconds... --- Walking the entire request list --- Cleaning up request 6 ID 19 with timestamp 3e5e59f8 Nothing to do. Sleeping until we see a request. #############radius.log################### root@rh8 radius]# cat radius.log Thu Feb 27 13:13:51 2003 : Info: rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked Thu Feb 27 13:13:51 2003 : Info: rlm_sql (sql): Attempting to connect to root@localhost:/radius Thu Feb 27 13:13:51 2003 : Info: rlm_sql_mysql: Starting connect to MySQL server for #0 Thu Feb 27 13:13:51 2003 : Error: rlm_sql_mysql: Couldn't connect socket to MySQL server root@localhost:radius Thu Feb 27 13:13:51 2003 : Error: rlm_sql_mysql: Mysql error 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Thu Feb 27 13:13:51 2003 : Error: rlm_sql (sql): Failed to connect DB handle #0 Thu Feb 27 13:13:51 2003 : Info: Ready to process requests.