Frédéric GARGULA wrote:
I tried PreHandlerHook, as mentioned in the ref manual (6.4.10) :

in my radius.cfg :

<Client xxx.xxx.xxx.xxx>
        Secret  topsecret
        PreHandlerHook sub { \
             $_[0]->add_attr('Tunnel-Type', 'Tunnel-L2F'); \
             $_[0]->add_attr('Tunnel-Medium-Type', 'Tunnel-IP'); \
             $_[0]->add_attr('Tunnel-Client-Endpoint',
'[EMAIL PROTECTED]');\
             $_[0]->add_attr('Tunnel-Server-Endpoint', '@toto_example');
\
             $_[0]->add_attr('Tunnel-Password', 'yyyyyy'); }


but when I restart Radiator, I have the following error :

Thu Jul 29 19:39:38 1999: NOTICE: SIGHUP received: restarting
Thu Jul 29 19:39:38 1999: ERR: Compilation error in PreHandlerHook():
Can't use subscript on subroutine entry at (eval 344) line 1,
 near "'Tunnel-L2F'}"
Can't use subscript on subroutine entry at (eval 344) line 1, near
"'Tunnel-IP'}"
Can't use subscript on subroutine entry at (eval 344) line 1, near
"'[EMAIL PROTECTED]'}"
Can't use subscript on subroutine entry at (eval 344) line 1, near
"'@toto_example'}"
Can't use subscript on subroutine entry at (eval 344) line 1, near
"'yyyyyy'}"


I don't know if that idea to fake a new attribute is good or not, but it
doesn't work...

does anyone have another idea ?


Thanks a lot for Help...

-- 
Frederic GARGULA
Ingenieur Reseaux & Systemes
EASYNET France
Tel.: +33 1 44 54 70 55

===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to