<div dir="ltr">Hi Alan,<div><br></div><div>Thanks for your response.</div><div><br></div><div>I had mail delivery turned off so didn't see it until now, hence the weird reply.</div><div><br></div><div>Bertalan</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 21 October 2013 16:22, Bertalan Voros <span dir="ltr"><<a href="mailto:bertalan.voros@gmail.com" target="_blank">bertalan.voros@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Bertalan Voros<div>m: 07932858025</div>
</div>