Esmith::FormMagick::Panel::remoteaccess
Contents
- 1 NAME
- 2 SYNOPSIS
- 3 DESCRIPTION
- 3.1 get_prop ITEM PROP
- 3.2 get_value ITEM
- 3.3 get_ftp_access
- 3.4 get_pptp_sessions
- 3.5 get_ssh_permit_root_login
- 3.6 get_ssh_password_auth
- 3.7 get_ssh_access
- 3.8 get_ssh_port
- 3.9 get_ftp_password_login_access
- 3.10 get_telnet_mode
- 3.11 get_serial_console
- 3.12 zero_or_positive
- 3.13 _get_valid_from
- 3.14 add_new_valid_from
- 3.15 remove_valid_from
- 3.16 show_valid_from_list
- 4 ACTION
NAME
esmith::FormMagick::Panels::remoteaccess - useful panel functions In a root terminal you can do the command below if you want to display the up-to-date content
perldoc esmith::FormMagick::Panels::remoteaccess
SYNOPSIS
use esmith::FormMagick::Panels::remoteaccess; my $panel = esmith::FormMagick::Panel::remoteaccess->new(); $panel->display();
DESCRIPTION
new();
Exactly as for esmith::FormMagick
get_prop ITEM PROP
A simple accessor for esmith::ConfigDB::Record::prop
get_value ITEM
A simple accessor for esmith::ConfigDB::Record::value
get_ftp_access
Returns "normal", "private" or "off" depending on the ’access’ and ’status’ properties of the "ftp" config file variable
get_pptp_sessions
Get the # of pptp sessions defined in the sessions property of the pptp config file variable
get_ssh_permit_root_login
returns ’yes’ or ’no’ depending on whether ssh permit root login is enabled
get_ssh_password_auth
Returns ’no’ or ’yes’ depending on whether ssh password auth is enabled
get_ssh_access
Returns ’public’ ’private’ or ’off’, depending on the current ssh server mode.
get_ssh_port
Get the tcp port defined in the TCPPort propery in the sshd config file variable
get_ftp_password_login_access
Returns "public" or "private" depending on the ’status’ and ’LoginAccess’ properties of the "ftp" config file variable
get_telnet_mode
Returns "public", "private" or "off" depending on the current telnet configuration
get_serial_console
Returns "disabled" or the serial device on which a login console is enabled.
zero_or_positive
Validate that the input is a number >= 0.
_get_valid_from
Reads the ValidFrom property of config entry httpd-admin and returns a list of the results. Private method.
add_new_valid_from
Adds a new ValidFrom property in httpd-admin.
remove_valid_from
Remove the specified net/mask from ValidFrom
show_valid_from_list
Displays a table of the ValidFrom networks for httpd-admin.
ACTION
change_settings
If everything has been validated, properly, go ahead and set the new settings