NAME
Net::TacacsPlus::Constants - Tacacs+ packet constants
SYNOPSIS
use Net::TacacsPlus::Constants;
DESCRIPTION
This module will import tacacs+ packet constants defined in tac-rfc.1.76.txt + TAC_PLUS_HEADER_SIZE.
TAC_PLUS_MAJOR_VER => 0xc,
TAC_PLUS_MINOR_VER_DEFAULT => 0x0,
TAC_PLUS_MINOR_VER_ONE => 0x1,
TAC_PLUS_AUTHEN => 0x01, #(Authentication)
TAC_PLUS_AUTHOR => 0x02, #(Authorization)
TAC_PLUS_ACCT => 0x03, #(Accounting)
TAC_PLUS_UNENCRYPTED_FLAG => 0x01,
TAC_PLUS_SINGLE_CONNECT_FLAG => 0x04,
TAC_PLUS_AUTHEN_LOGIN => 0x01,
TAC_PLUS_AUTHEN_CHPASS => 0x02,
TAC_PLUS_AUTHEN_SENDPASS => 0x03, #(deprecated)
TAC_PLUS_AUTHEN_SENDAUTH => 0x04,
TAC_PLUS_PRIV_LVL_MAX => 0x0f,
TAC_PLUS_PRIV_LVL_ROOT => 0x0f,
TAC_PLUS_PRIV_LVL_USER => 0x01,
TAC_PLUS_PRIV_LVL_MIN => 0x00,
TAC_PLUS_AUTHEN_TYPE_ASCII => 0x01,
TAC_PLUS_AUTHEN_TYPE_PAP => 0x02,
TAC_PLUS_AUTHEN_TYPE_CHAP => 0x03,
TAC_PLUS_AUTHEN_TYPE_ARAP => 0x04,
TAC_PLUS_AUTHEN_TYPE_MSCHAP => 0x05,
TAC_PLUS_AUTHEN_SVC_NONE => 0x00,
TAC_PLUS_AUTHEN_SVC_LOGIN => 0x01,
TAC_PLUS_AUTHEN_SVC_ENABLE => 0x02,
TAC_PLUS_AUTHEN_SVC_PPP => 0x03,
TAC_PLUS_AUTHEN_SVC_ARAP => 0x04,
TAC_PLUS_AUTHEN_SVC_PT => 0x05,
TAC_PLUS_AUTHEN_SVC_RCMD => 0x06,
TAC_PLUS_AUTHEN_SVC_X25 => 0x07,
TAC_PLUS_AUTHEN_SVC_NASI => 0x08,
TAC_PLUS_AUTHEN_SVC_FWPROXY => 0x09,
TAC_PLUS_AUTHEN_STATUS_PASS => 0x01,
TAC_PLUS_AUTHEN_STATUS_FAIL => 0x02,
TAC_PLUS_AUTHEN_STATUS_GETDATA => 0x03,
TAC_PLUS_AUTHEN_STATUS_GETUSER => 0x04,
TAC_PLUS_AUTHEN_STATUS_GETPASS => 0x05,
TAC_PLUS_AUTHEN_STATUS_RESTART => 0x06,
TAC_PLUS_AUTHEN_STATUS_ERROR => 0x07,
TAC_PLUS_AUTHEN_STATUS_FOLLOW => 0x21,
TAC_PLUS_HEADER_SIZE => 12,
AUTHOR
Jozef Kutej <jozef.kutej@hp.com>
VERSION
1.0
SEE ALSO
tac-rfc.1.76.txt, Net::TacacsPlus::Client
METHODS
- import()
-
This sub is called automaticaly. I loads the constants to caller namespace. I took idea for it from "use constant".
COPYRIGHT AND LICENSE
Copyright (C) 2006 by Jozef Kutej
This 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.