freeradius 3.2.5 - sql module with if fail ok - still fails the entire authorize section

Ricardo Esteves maverick.pt at gmail.com
Sat Aug 16 12:17:26 UTC 2025


Hi,

I'm having an issue with sql module, i want to continue in the authorize 
section even if the sql module fails, but is not working.

I have this in the authorize section:

         sql
         if (fail) {
                 ok
         }

When i try radtest i see that the sql module fails (when my mysql is 
down) but the if condition is not respected and entire authorize section 
fails:

rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Couldn't connect to MySQL server radius at mariadb.local:radius
rlm_sql_mysql: MySQL error: Lost connection to server at 'handshake: 
reading initial communication packet', system error: 11
rlm_sql_mysql: Socket destructor called, closing socket
rlm_sql (sql): Opening connection failed (0)
(0)     [sql] = fail
(0)   } # authorize = fail

Anyone has any idea what might be wrong?

Best regards.


More information about the Freeradius-Users mailing list