<div dir="ltr"><div><div><div><div><div>Hello, I have configure my FreeRadius to work with MySQL, I also add the sqlcounter to count the hours user after the first login.<br></div>Here is my code: <br></div>mods-enabled/sqlcounter:<br><br>sqlcounter checkthetime {<br>    sql_module_instance = sql<br>    dialect = ${modules.sql.dialect}<br>        <br>        counter_name = All-Hours-Passed<br>        check_name = Max-Hours-Passed <br>        reply_name = Session-Timeout       <br>        key = User-Name<br>        reset = never<br><br>        $INCLUDE ${modconfdir}/sql/counter/${dialect}/${.:instance}.conf        <br>}<br><br></div>checkthetime.conf:<br><br>query = "\<br>        SELECT HOUR(SEC_TO_TIME(UNIX_TIMESTAMP() - UNIX_TIMESTAMP(AcctStartTime))) \<br>        FROM radacct \<br>        WHERE UserName = '%{${key}}' LIMIT 1;"<br><br></div>sites-available/default:<br><br>authorize {<br>....<br><br></div>sql<br><div>checkthetime<br>....<br>}<br><br></div><div>I am getting this message from the debug mode:<br><br>(0)  WARNING: checkthetime : Couldn't find control attribute 'control:Max-Hours-Passed'<br><br></div><div>I don't know if I have make any syntax error! Thanks for your attention and time!<br></div></div>