Subject: | command authorization failed |
Date: | Thu, 05 Jul 2012 16:12:09 +0200 |
To: | bug-Net-Telnet-Cisco [...] rt.cpan.org |
From: | "Lukas Valle" <lukivalle [...] gmx.ch> |
Hi
If using Tacacs authentication Cisco devices may return a "command authorization failed" (1) message. At the moment, it does not generate a warning, as this error does not start with a '%'. Suggested patch:
203,205c203
< if ( ( substr $out[$i], 0, 1 ) eq '%'
< || ( $out[$i] =~ m/^Command\sauthorization\sfailed\.$/smx ) )
< {
---
Show quoted text
> if ( ( substr $out[$i], 0, 1 ) eq '%' ) {
Kind regards
Lukas
(1) http://www.cisco.com/en/US/pro ducts/sw/secursw/ps2086/produc ts_configuration_example09186a 00808d9138.shtml