Hello Lisa -


At 14:28 +0100 01/1/17, Lisa Goulet wrote:
>Hi All,
>
>I'm trying to set up preauthentication followed by tunneling. The NAS is
>Cisco 5800.
>
>In the attributes received, the one that distinguishes preauthentication
>from tunneling is:
>
>       Cisco-NAS-Port = "Serial1/2/7:30*"
>
>I'm trying trap this in a hook:
>
>         PreHandlerHook sub { \
>            my $port = ${$_[0]}->get_attr('Cisco-NAS-Port' );\
>            if (${port} =~ /Serial/) {\
>                ${$_[0]}->add_attr('preauth_call','true'); return; \
>             }\
>          }
>
>The attr preauth_call is not getting set though. The attribute
>Cisco-NAS-Port is listed as a VENDORATTR in the dictionary.


The code above should look like this:

        if ($port = .....

Have a look at the Camel book.

regards

Hugh

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.

===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to