72. FtpServer

FtpServer settings, input and output functions

72.1. Summary of Module Globals

List of Global Functions

  • Abort - Returns a confirmation popup dialog whether user wants to really abort.

  • Export - Dump the FtpServer settings to a single map (For use by autoinstallation.)

  • GetModified - Returns whether the configuration has been modified.

  • Import - Get all FtpServer settings from the first parameter (For use by autoinstallation.)

  • InitDaemon - Set which daemon will be configured (For use by autoinstallation.)

  • Modified - Prototypes

  • Modified - Data was modified?

  • OptionsSummary - Create unsorted list of options

  • Overview - Create an overview table with all configured cards

  • PollAbort - Checks whether an Abort button has been pressed. If so, calls function to confirm the abort call.

  • Read - Read all FtpServer settings

  • Summary - Create a textual summary and a list of unconfigured cards

  • ValueUIEdit - read value from PURE_EDIT_SETTINGS

  • Write - Write all FtpServer settings

  • WriteSettings - Write current configuration

  • WriteToEditMap - Write value from UI to temporary structure

  • WriteUpload - Ask for creation upload directory It is necessary if user want to allow uploading for anonymous

  • WriteXinetd - Write current configuration

List of Global Variables

  • DEFAULT_CONFIG - map of deafult values for options in UI

  • EDIT_SETTINGS - map <string, string > of vsftpd settings

  • PURE_SETTINGS - map <string, string > of pure-ftpd settings

  • UI_keys - list of keys from map DEFAULT_CONFIG

  • VS_SETTINGS - map <string, string > of vsftpd settings

  • anon_homedir - variable signifies home dir for anonymous user

  • anon_uid - variable signifies uid for anonymous user

  • change_permissions - variable signifies if user choose change permissions for home dir for anonymous connections with allowed upload

  • create_upload_dir - variable signifies if it is create upload dir only for vsftpd and anonymous connections with allowed upload

  • ftps -

  • modified - Data was modified?

  • proposal_valid - general variable for proposal

  • pure_ftp_allowed_permissios_upload - variable signifies if upload dir for anonymous has good permissions it is only for pure-ftpd

  • pure_ftp_xinetd_running - variable signifies if daemon is running via xinetd

  • pure_ftpd_xinet_conf - list includes xinetd server_args for pure-ftpd

  • pureftpd_installed - variable signifies if pure-ftpd is installed and

  • pureftpd_xined_id - variable signifies if pure-ftpd is installed and in structur Inetd::netd_conf -1 init value before calling Inetd::Read()

  • start_xinetd - variable signifies if daemon will be started via xinetd

  • stop_daemon_xinetd - variable signifies if daemon will be stoped in xinetd

  • upload_good_permission - variable signifies if upload dir has good permissions only for vsftpd and anonymous connections with allowed upload

  • vsftp_xinetd_running - variable signifies if daemon is running via xinetd

  • vsftpd_edit - variable signifies if vsftpd is selected and edited via ftp-server (YaST module) global boolean variable

  • vsftpd_installed - variable signifies if vsftpd is installed and

  • vsftpd_xined_id - variable signifies position vsftpd record in structur Inetd::netd_conf -1 init value before calling Inetd::Read()

  • write_only - Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.

72.2. Global Functions

72.2.1. Abort

Returns a confirmation popup dialog whether user wants to really abort.

Return value

  • boolean - result of Popup::ReallyAbort(GetModified()

72.2.2. Export

Dump the FtpServer settings to a single map (For use by autoinstallation.)

Return value

  • map - Dumped settings (later acceptable by Import ())

72.2.3. GetModified

Returns whether the configuration has been modified.

Return value

  • boolean - modified

72.2.4. Import

Get all FtpServer settings from the first parameter (For use by autoinstallation.)

Function parameters

  • map settings

Return value

  • boolean - True on success

72.2.5. InitDaemon

Set which daemon will be configured (For use by autoinstallation.)

Return value

  • boolean - True on success

72.2.6. Modified

Prototypes

Return value

  • boolean

72.2.7. Modified

Data was modified?

Return value

  • boolean - true if modified

72.2.8. OptionsSummary

Create unsorted list of options

Return value

  • string - Returnes string with RichText-formated list

72.2.9. Overview

Create an overview table with all configured cards

Return value

  • list - table items

72.2.10. PollAbort

Checks whether an Abort button has been pressed. If so, calls function to confirm the abort call.

Return value

  • boolean - true if abort confirmed

72.2.11. Read

Read all FtpServer settings

Return value

  • boolean - true on success

72.2.12. Summary

Create a textual summary and a list of unconfigured cards

Return value

  • string - summary of the current configuration

72.2.13. ValueUIEdit

read value from PURE_EDIT_SETTINGS

Function parameters

  • string key

Return value

  • string - value of key from edit map

72.2.14. Write

Write all FtpServer settings

Return value

  • boolean - true on success

72.2.15. WriteSettings

Write current configuration

Return value

  • boolean - successfull

72.2.16. WriteToEditMap

Write value from UI to temporary structure

Function parameters

  • string key

  • string value

Return value

  • boolean - successfull

72.2.17. WriteUpload

Ask for creation upload directory It is necessary if user want to allow uploading for anonymous

Return value

  • boolean - result of function (true/false)

72.2.18. WriteXinetd

Write current configuration

Return value

  • boolean - result of function (true/false)

72.3. Global Variables

72.3.1. DEFAULT_CONFIG

map of deafult values for options in UI

72.3.2. EDIT_SETTINGS

map <string, string > of vsftpd settings

72.3.3. PURE_SETTINGS

map <string, string > of pure-ftpd settings

72.3.4. UI_keys

list of keys from map DEFAULT_CONFIG

72.3.5. VS_SETTINGS

map <string, string > of vsftpd settings

72.3.6. anon_homedir

variable signifies home dir for anonymous user

72.3.7. anon_uid

variable signifies uid for anonymous user

72.3.8. change_permissions

variable signifies if user choose change permissions for home dir for anonymous connections with allowed upload

72.3.9. create_upload_dir

variable signifies if it is create upload dir only for vsftpd and anonymous connections with allowed upload

72.3.10. ftps

72.3.11. modified

Data was modified?

72.3.12. proposal_valid

general variable for proposal

72.3.13. pure_ftp_allowed_permissios_upload

variable signifies if upload dir for anonymous has good permissions it is only for pure-ftpd

72.3.14. pure_ftp_xinetd_running

variable signifies if daemon is running via xinetd

72.3.15. pure_ftpd_xinet_conf

list includes xinetd server_args for pure-ftpd

72.3.16. pureftpd_installed

variable signifies if pure-ftpd is installed and

72.3.17. pureftpd_xined_id

variable signifies if pure-ftpd is installed and in structur Inetd::netd_conf -1 init value before calling Inetd::Read()

72.3.18. start_xinetd

variable signifies if daemon will be started via xinetd

72.3.19. stop_daemon_xinetd

variable signifies if daemon will be stoped in xinetd

72.3.20. upload_good_permission

variable signifies if upload dir has good permissions only for vsftpd and anonymous connections with allowed upload

72.3.21. vsftp_xinetd_running

variable signifies if daemon is running via xinetd

72.3.22. vsftpd_edit

variable signifies if vsftpd is selected and edited via ftp-server (YaST module) global boolean variable

72.3.23. vsftpd_installed

variable signifies if vsftpd is installed and

72.3.24. vsftpd_xined_id

variable signifies position vsftpd record in structur Inetd::netd_conf -1 init value before calling Inetd::Read()

72.3.25. write_only

Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.

72.4. Module Requirements

72.4.1. Module Imports

  • CommandLine
  • Message
  • Mode
  • Package
  • Popup
  • PortAliases
  • Progress
  • Report
  • String
  • SuSEFirewall
  • SuSEFirewallServices
  • Summary
  • Users

72.4.2. Module Includes

  • ftp-server/write_load.ycp