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

Ricardo Esteves <[email protected]>
Newsgroups gmane.comp.freeradius.user
Message-ID <[email protected]>
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 [email protected]: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.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.