1 - upgrade your freeradius. 2.1.12 is hideously old 2 - your sql is failing because the sql query is broken/empty You don't need to look at switches etc etc. If it works when users file is used then server/NAS communicating okay. Fix the sql alan