<div dir="ltr">Hello All,<div><br></div><div>I am trying to do this:</div><div><div> if (Called-Station-ID =~ /:ssid$/) {</div><div> rewrite_calling_station_id</div><div> if(!"%{sql_mac:SELECT COUNT(*) FROM 'arguswifi.macaddress' WHERE mac = '%{Calling-Station-ID}' = 1}"){</div>
<div> reject</div><div> }</div><div> }</div><div> </div></div><div>But getting the following in -X:<br></div>
<div><div>WARNING: Unknown module "sql_mac" in string expansion "%"</div><div>Also if I look through the debug log there seems to be no mentioning of sql_mac.</div><div>sql.conf is uncommented in radiusd.conf.</div>
<div><br></div><div>My sql.conf:</div><div><div>sql sql_mac {</div><div> database = "mysql"</div><div> driver = "rlm_sql_${database}"</div>
<div> server = "mysql.server"</div><div> login = "dbuser"</div><div> password = "dpPwd"</div><div> radius_db = "macdb"</div><div> sqltrace = yes</div>
<div> sqltracefile = ${logdir}/sqltrace.sql</div><div> num_sql_socks = 5</div><div> connect_failure_retry_delay = 60</div><div> lifetime = 0</div><div> max_queries = 0</div><div>}</div>
</div>
<div><br></div><div>What am I doing wrong?</div><div><br></div><div>Thanks again,</div><div>Bertalan</div>
</div></div>