(RADIATOR) Can't set certain attributes from PostAuthHook
needle-mls at world-online.no
needle-mls at world-online.no
Fri Oct 19 19:50:54 CDT 2001
On Mon, Oct 15, 2001 at 11:40:24AM +1000, Hugh Irvine wrote:
| If you want to add attributes in a PostAuthHook, you would do this:
|
| sub
| {
| my $p = ${$_[0]};
| my $rp = ${$_[1]};
| my $result = ${$_[2]};
|
| if ($result == $main::ACCEPT)
| {
| $rp->add_attr('Service-Type', 'Framed-User');
| $rp->add_attr('Framed-Protocol', 'PPP');
| }
| return;
| }
Yeah, that works. :-) I must've had a serious brain glitch when I
tried to get $Radius::Radius::FRAMED_MTU and so on working. I still
don't understand why I couldn't get the "AddToReply" to work, but
that's not important now.
Thanks for your time, and an incredible piece of software. :-)
Jo
--
"If people are good only because they fear punishment, and hope for
reward, then we are a sorry lot indeed."
-- Albert Einstein
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list