Here's a paste of it (https://gist.github.com/anonymous/5102003). I took the example.pl script and modified the authorize section. I'm trying to allow users to walk/roam between access points without having to re-authenticate when they get handed off to the new access point. I set the APs to try mac authentication first, then my script runs and checks if they were previously authenticated at another AP. If so, it disconnects them from the old AP and reconnects them to the new AP and the user doesn't have to log in again.
Brian Wallen wrote:Because that's probably what you told it to do.
> Thanks for the suggestion, Alan. I've rewritten my script in Perl but
> I'm still having the same issue. In my log I see two pairs for User-Name:
No. Normal Perl should work.
> rlm_perl: Added pair User-Name = MyOldUsername
> rlm_perl: Added pair User-Name = MyNewUsername
>
> So how to I make rlm_perl change/overwrite the value of User-Name rather
> than add a second User-Name pair? I tried returning updated rather than
> ok, but that didn't seem to make any difference. In my script I have
>
> $RAD_REPLY{'User-Name'} = 'MyNewUsername';
>
> Is there maybe an operator besides = that I should use?
So... what does your script do? Can you pare it down to an example
you can post here? Otherwise, you message is little more than "it
doesn't work".