|
NAMENet::TacacsPlus::Client - Tacacs+ client librarySYNOPSISuse Net::TacacsPlus::Client; use Net::TacacsPlus::Constants; my $tac = new Net::TacacsPlus::Client( host => 'localhost', key => 'secret'); if ($tac->authenticate($username, $password, TAC_PLUS_AUTHEN_TYPE_PAP)){ print "Authentication successful.\n"; } else { print "Authentication failed: ".$tac->errmsg()."\n"; } my @args = ( 'service=shell', 'cmd=ping', 'cmd-arg=10.0.0.1' ); my @args_response; if($tac->authorize($username, \@args, \@args_response)) { print "Authorization successful.\n"; print "Arguments received from server:\n"; print join("\n", @args_response); } else { print "Authorization failed: " . $tac->errmsg() . "\n"; } @args = ( 'service=shell', 'cmd=ping', 'cmd-arg=10.0.0.1' ); if($tac->account($username, \@args)) { print "Accounting successful.\n"; } else { print "Accounting failed: " . $tac->errmsg() . "\n"; } DESCRIPTIONCurrently only PAP and ASCII authentication can be used agains Tacacs+ server.Tested agains Cisco ACS 3.3 and Cisco (ftp://ftp-eng.cisco.com/pub/tacacs/) tac-plus server. METHODS
AUTHORJozef Kutej - <jkutej@cpan.org>Authorization and Accounting contributed by Rubio Vaughan <rubio@passim.net> VERSION1.07SEE ALSOtac-rfc.1.78.txt, Net::TacacsPlus::PacketComplete client script "Net-TacacsPlus/examples/client.pl". TODOtacacs+ CHAP, ARAP, MSCHAP authentication COPYRIGHT AND LICENSECopyright (C) 2006 by Jozef KutejThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.
Visit the GSP FreeBSD Man Page Interface. |