Inserting attributes into the check table from Perl?
- To: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org>
- Subject: Inserting attributes into the check table from Perl?
- From: "Jan Mulders" <lastchancehotel@gmail.com>
- Date: Thu, 12 Oct 2006 18:46:20 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=qUPiCqZv4nIj4YMi0QkP+SqSOb1ngje45ys3LAMQa5CsrGeefdt5inyWkLSo5BDQZZcXJA85gjkgXLhl4qhIwdG357FaKEX87kng2eKA3EWMkl6pbWyAME5Bff5UOcvXLT5XMvfuLchDyMx/vU3JRGcOdAAAY2XQEQxsNApYWaE=
- Reply-to: FreeRadius users mailing list <freeradius-users@lists.freeradius.org>
Hello all,
I've just finished writing a perl program to give a user a different
speed of service based on their accounting total for the last month in
MySQL, and I'd like to also assign these users an IP based on this
usage too.
I wanted to do this by setting the Pool-Name check value from my
script, after it's figured out what group the user being authenticated
falls under. However, apparently the $RAD_CHECK hash is read-only.
How do I write to the Check table from perl? Is it possible?
Is there a way of invoking ip_pools from perl?
thanks,
Jan
This archive was generated by a fusion of
Pipermail (Mailman edition) and
MHonArc.