Hello Antonio -
On Tue, 01 Feb 2000, Antonio Coloma wrote:
> Hi everybody!
>
>
> We want to change the value of the NAS-Port Attr in preAuthHook clause
> ...
> How can we do that?
>
> We have tried with :
> PreAuthHook sub { \
> if (${$_[0]}->get_attr('NAS-Port') eq '' ) { \
> ${$_[1]}->add_attr('NAS-Port','9999'); \
> } \
> }
>
> and with :
> PreAuthHook sub { \
> ${$_[1]}->add_attr('NAS-Port','9999'); \
> }
>
What exactly are you trying to do? Both of the above will change the Reply
packet (${$_[1]}), not the incoming packet (${$_[0]}).
regards
Hugh
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
NT, Rhapsody
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.