<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=TIS-620" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Kledi Andoni wrote:
<blockquote
cite="mid:E98A2957-59CB-420E-8D1B-DC3AAE3DE6A5@pronet.com.al"
type="cite">
<pre wrap="">Hello,
I need a way to set the Calling-Station-Id attribute automatically for each user after the first authorization request. In this way the user will be allowed to authorize only from that mac address in the future.
I am using freeradius 1.1.7 with mysql. I do not have the expertise to write a new module, but I believe the way to do it is:
- User tries to authorize and sends username/password/calling-station-id
- Radius verifies username/password (calling-station-id is not yet set)
- Check if a user has ever authorized, through a query on the radacct table. If no rows exist for the specific username then its first login
- insert a row containing the calling-station-id for the specific user in the radcheck table.
Is there a way to do this by configuring freeradius, or do I have to submit it as a request for a feature?
Thank you,
K
-
List info/subscribe/unsubscribe? See <a class="moz-txt-link-freetext" href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a>
</pre>
</blockquote>
you can use modules checkval to make calling-station-id check.<br>
But for add calling-station-id on first login, you need more scripts to
add it.<br>
you may use unlang. for me i use pppoe-server as nas. i use php to add
it after first login.<br>
<br>
<div class="moz-signature">-- <br>
<a href="http://www.EasyHorpak.com" target="_blank">http://www.EasyHorpak.com</a>
- แหล่งค้นหาหอพัก,อพาร์ทเมนท์,แมนชั่น,คอนโด,โรงแรม<br>
<a href="http://www.EasyZoneCorp.net" target="_blank">http://www.EasyZoneCorp.net</a>
- ซอฟแวร์จัดการ internet คุณภาพสูง Hotpsot และ PPPoE ,Anti NetCut, Mac
spoof<br>
<a href="http://www.thai-school.net" target="_blank">http://www.thai-school.net</a>
- เว็บไซต์โรงเรียน,ศิษย์เก่า สำเร็จรูป <br>
<a href="http://www.easyhorpak.com/superlink" target="_blank">EasyZone
SuperLink </a> - แลกหมื่นลิ้งคืในคลิ๊กเดียว <br>
</div>
</body>
</html>