YaST2 Developers Documentation: Configuration of ftp-server

Configuration of ftp-server

include/ftp-server/wid_functions.ycp
Wizards definitions
  • Jozef Uhliarik

This module has an unstable interface.

Imports

  • FileUtils
  • Inetd
  • Label
  • Label
  • Mode
  • Mode
  • Popup
  • Report
  • Service
  • Users
  • Wizard

Local Variables

Local Functions

local ask_again -> boolean

variable signifies repeat asking about upload file only for vsftpd

local GetEnableService () -> boolean

CWMServiceStart function with no parameter returning boolean value that says if the service is started.

local SetEnableService (boolean enable_service) -> void

CWMServiceStart function with one boolean parameter returning boolean value that says if the service will be started at boot.

Parameters:
enable_service
local GetStartedViaXinetd () -> boolean

CWMServiceStart function with no parameter returning boolean value that says if the service is started.

local SetStartedViaXinetd (boolean enable_service) -> void

CWMServiceStart function with one boolean parameter returning boolean value that says if the service will be started at boot.

Parameters:
enable_service
local StartNowVsftpd () -> boolean

Function start vsftpd

local StopNowVsftpd () -> boolean

Function stop vsftpd

local SaveAndRestartVsftpd () -> boolean

Function saves configuration and restarts vsftpd

local StartNowPure () -> boolean

Function start pure-ftpd

local StopNowPure () -> boolean

Function stop pure-ftpd

local SaveAndRestartPure () -> boolean

Function saves configuration and restarts pure-ftpd

local InitRBVsPure (string key) -> void

Init function for general settings save values to temporary structure

Parameters:
key
local InitStartStopRestart (string key) -> void

Init function for start-up

Parameters:
key
Info:

-----------================= GENERAL SCREEN =============----------

local HandleUniversal (string key, map event) -> symbol

Handle function only save info about changes

Parameters:
key
event
local StoreBanner (string key, map event) -> void

Store function of "Wellcome Message" save values to temporary structure only vsftpd

Parameters:
key
event
local InitChrootEnable (string key) -> void

Init function "Chroot Everyone" for general settings check_box

Parameters:
key
local StoreChrootEnable (string key, map event) -> void

Store function of "Chroot Everyone" save values to temporary structure

Parameters:
key
event
local InitVerboseLogging (string key) -> void

Init function "Verbose Logging" for general settings check_box

Parameters:
key
local StoreVerboseLogging (string key, map event) -> void

Store function of "Verbose Logging" save values to temporary structure

Parameters:
key
event
local InitUmask (string key) -> void

Init function "Umask (umask files:umask dirs)" for general settings change ValidChars for textentry only pure-ftpd

Parameters:
key
local ValidUmask (string key, map event) -> boolean

Valid function of "Umask (umask files:umask dirs)" check value of textentry only pure-ftpd

Parameters:
key
event
local StoreUmask (string key, map event) -> void

Store function of "Umask (umask files:umask dirs)" save values to temporary structure only pure-ftpd

Parameters:
key
event
local InitUmaskAnon (string key) -> void

Init function "Umask for Anonymous" for general settings change ValidChars for textentry only vsftpd

Parameters:
key
local StoreUmaskAnon (string key, map event) -> void

Store function of "Umask for Anonymous" save values to temporary structure only vsftpd

Parameters:
key
event
local InitUmaskLocal (string key) -> void

Init function "Umask for Authenticated Users" for general settings change ValidChars for textentry only vsftpd

Parameters:
key
local StoreUmaskLocal (string key, map event) -> void

Store function of "Umask for Authenticated Users" save values to temporary structure only vsftpd

Parameters:
key
event
local InitFtpDirAnon (string key) -> void

Init function of "Ftp Directory for Anonymous Users" textentry

Parameters:
key
local ValidFtpDirAnon (string key, map event) -> boolean

Valid function of "Ftp Directory for Anon&ymous Users" check value of textentry

Parameters:
key
event
local StoreFtpDirAnon (string key, map event) -> void

Store function of "Ftp Directory for Anon&ymous Users" save values to temporary structure

Parameters:
key
event
local HandleBrowseAnon (string key, map event) -> symbol

Handle function of "Browse" handling value in textentry of "Umask for Anonynmous Users"

Parameters:
key
event
local InitFtpDirLocal (string key) -> void

Init function of "Ftp Directory for Authenticated Users" textentry

Parameters:
key
local StoreFtpDirLocal (string key, map event) -> void

Store function of "Umask for Authenticated Users" save values to temporary structure

Parameters:
key
event
local HandleBrowseLocal (string key, map event) -> symbol

Handle function of "Browse" handling value in textentry of "Umask for Authenticated Users"

Parameters:
key
event
Info:

-----------================= PERFORMANCE SCREEN =============----------

local StoreMaxIdleTime (string key, map event) -> void

Store function of "Max Idle Time [minutes]" save values to temporary structure

Parameters:
key
event
local InitMaxClientsPerIP (string key) -> void

Init function of "Max Clients for One IP" intfield

Parameters:
key
local StoreMaxClientsPerIP (string key, map event) -> void

Store function of "Max Clients for One IP" save values to temporary structure

Parameters:
key
event
local InitMaxClientsNumber (string key) -> void

Init function of "Max Clients" intfield

Parameters:
key
local StoreMaxClientsNumber (string key, map event) -> void

Store function of "Max Clients" save values to temporary structure

Parameters:
key
event
local InitLocalMaxRate (string key) -> void

Init function of "Local Max Rate [KB/s]" intfield

Parameters:
key
local StoreLocalMaxRate (string key, map event) -> void

Store function of "Local Max Rate [KB/s]" save values to temporary structure

Parameters:
key
event
local InitAnonMaxRate (string key) -> void

Init function of "Anonymous Max Rate [KB/s]" intfield

Parameters:
key
local StoreAnonMaxRate (string key, map event) -> void

Store function of "Anonymous Max Rate [KB/s]" save values to temporary structure

Parameters:
key
event
Info:

-----------================= Authentication SCREEN =============----------

local StoreAnonAuthen (string key, map event) -> void

Store function of "Enable/Disable Anonymous and Local Users" save value to temporary structure

Parameters:
key
event
local InitEnableUpload (string key) -> void

Init function of "Enable Upload" checkbox

Parameters:
key
local HandleEnableUpload (string key, map event) -> symbol

Handle function of "Enable Upload" handling value and ask for creation upload directory function also disable/enable "Anon&ymous Can Upload" and "Anonymou&s Can Create Directories"

Parameters:
key
event
local StoreEnableUpload (string key, map event) -> void

Store function of "Enable Upload" save value to temporary structure

Parameters:
key
event
local InitAnonReadOnly (string key) -> void

Init function of "Anonymous Can Upload" checkbox

Parameters:
key
local HandleAnonReadOnly (string key, map event) -> symbol

Handle function of "Anonymous Can Upload" check permissions for upload dir

Parameters:
key
event
local StoreAnonReadOnly (string key, map event) -> void

Store function of "Anonymous Can Upload" save value to temporary structure

Parameters:
key
event
local InitAnonCreatDirs (string key) -> void

Init function of "Anonymous Can Create Directories" checkbox

Parameters:
key
local HandleAnonCreatDirs (string key, map event) -> symbol

Handle function of "Anonymous Can Create Directories" check permissions for upload dir

Parameters:
key
event
local StoreAnonCreatDirs (string key, map event) -> void

Store function of "Anonymous Can Create Directories" save value to temporary structure

Parameters:
key
event
Info:

-----------================= EXPERT SETTINGS SCREEN =============----------

local HandlePassiveMode (string key, map event) -> symbol

Handle function of "Enable Passive Mode" handling enable/disable widgets

Parameters:
key
event
local StorePassiveMode (string key, map event) -> void

Store function of "Enable Passive Mode" save values to temporary structure

Parameters:
key
event
local InitPasMinPort (string key) -> void

Init function of "Min Port for Pas. Mode" intfield

Parameters:
key
local StorePasMinPort (string key, map event) -> void

Store function of "Min Port for Pas. Mode" save values to temporary structure

Parameters:
key
event
local InitPasMaxPort (string key) -> void

Init function of "Max Port for Pas. Mode" intfield

Parameters:
key
local ValidPasMaxPort (string key, map event) -> boolean

Valid function of "Max Port for Pas. Mode" check values Max Port >= Min Port

Parameters:
key
event
local StorePasMaxPort (string key, map event) -> void

Store function of "Max Port for Pas. Mode" save values to temporary structure

Parameters:
key
event
local InitSSLEnable (string key) -> void

Init function of "Enable SSL" checkbox

Parameters:
key
local HandleSSLEnable (string key, map event) -> symbol

Handle function of "Enable SSL" handling enable/disable widgets"

Parameters:
key
event
local StoreSSLEnable (string key, map event) -> void

Store function of "Enable SSL" save values to temporary structure

Parameters:
key
event
local InitSSLv2 (string key) -> void

Init function of "Enable SSL v2" intfield

Parameters:
key
local StoreSSLv2 (string key, map event) -> void

Store function of "Enable SSL v2" save values to temporary structure

Parameters:
key
event
local InitSSLv3 (string key) -> void

Init function of "Enable SSL v3" intfield

Parameters:
key
local StoreSSLv3 (string key, map event) -> void

Store function of "Enable SSL v3" save value to temporary structure

Parameters:
key
event
local InitTLS (string key) -> void

Init function of "Enable TLS" intfield

Parameters:
key
local StoreTLS (string key, map event) -> void

Store function of "Enable TLS" save value to temporary structure

Parameters:
key
event
local InitCertFile (string key) -> void

Init function of "DSA Certificate to Use for SSL Encrypted Connections" intfield

Parameters:
key
local ValidCertFile (string key, map event) -> boolean

Valid function of "DSA Certificate to Use for SSL Encrypted Connections" check value if user enable SSL Certificate (textentry) doesn't be empty

Parameters:
key
event
local StoreCertFile (string key, map event) -> void

Store function of "DSA Certificate to Use for SSL Encrypted Connections" save value to temporary structure

Parameters:
key
event
local HandleBrowseCertFile (string key, map event) -> symbol

Handle function of "Browse" handling value in textentry of "DSA Certificate to Use for SSL Encrypted Connections"

Parameters:
key
event
local InitAntiWarez (string key) -> void

Init function of "Disable Downloading Unvalidated Data" checkbox

Parameters:
key
local StoreAntiWarez (string key, map event) -> void

Store function of "Disable Downloading Unvalidated Data" save value to temporary structure

Parameters:
key
event
local InitSSL (string key) -> void

Init function of "Security Settings" checkbox

Parameters:
key
local ValidSSL (string key, map event) -> boolean

Valid function of "Security Settings" check of existing certificate

Parameters:
key
event
local StoreSSL (string key, map event) -> void

Store function of "Security Settings" save value to temporary structure

Parameters:
key
event