<div dir="ltr"><div>I'm logging into MySQL via post_auth_query = SQL query.</div><div><br></div><div>I've added some fields that I want to log, such as the allocated IP address, the NAS IP address and the Calling-Station-ID.</div>
<div><br></div><div>All fields are logging fine except for
Framed-IP-Address which just seems to be absent. Is that variable not
supposed to be accessible at that point?</div><div><div><br></div><div>
Here's an example entry from radreply, showing that I am indeed using Framed-IP-Address:</div><div><br></div><div>+-----+---------------------+-------------------+----+--------------+</div><div>| id | username | attribute | op | value |</div>
<div>+-----+---------------------+-------------------+----+--------------+</div><div>| 1 | <a href="mailto:username@host.com" target="_blank">username@host.com</a> | Framed-IP-Address | := | 10.10.10.10 | </div><div><br>
</div><div>
Here's what I have in <span class="">dialup</span>.<span class="">conf</span>:</div><div><br></div><div><div> postauth_query = "INSERT INTO ${postauth_table} \</div><div> (username, pass, reply, response, nas, location, authdate) \</div>
<div> VALUES ( \</div><div> '%{User-Name}', \</div><div> '%{%{User-Password}:-%{Chap-Password}}', \</div><div> '%{reply:Packet-Type}', \</div>
<div> '%{Framed-IP-Address}', \</div><div> '%{NAS-IP-Address}', \</div><div> '%{Calling-Station-ID}', '%S')"</div>
<div><br></div><div>Is there anything obvious that I'm missing? Any suggestions on where to look for problems?</div><div><br></div><div>Best regards,</div><div>Örn</div></div></div></div>