76. FtpServer

FtpServer settings, input and output functions

76.1. Authors

  • Jozef Uhliarik <juhliarik@suse.cz>

76.2. 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.

76.3. Global Functions

76.3.1. Abort

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

Return value

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

76.3.2. Export

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

Return value

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

76.3.3. GetModified

Returns whether the configuration has been modified.

Return value

  • boolean - modified

76.3.4. Import

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

Function parameters

  • map settings

Return value

  • boolean - True on success

76.3.5. InitDaemon

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

Return value

  • boolean - True on success

76.3.6. Modified

Prototypes

Return value

  • boolean

76.3.7. Modified

Data was modified?

Return value

  • boolean - true if modified

76.3.8. OptionsSummary

Create unsorted list of options

Return value

  • string - Returnes string with RichText-formated list

76.3.9. Overview

Create an overview table with all configured cards

Return value

  • list - table items

76.3.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

76.3.11. Read

Read all FtpServer settings

Return value

  • boolean - true on success

76.3.12. Summary

Create a textual summary and a list of unconfigured cards

Return value

  • string - summary of the current configuration

76.3.13. ValueUIEdit

read value from PURE_EDIT_SETTINGS

Function parameters

  • string key

Return value

  • string - value of key from edit map

76.3.14. Write

Write all FtpServer settings

Return value

  • boolean - true on success

76.3.15. WriteSettings

Write current configuration

Return value

  • boolean - successfull

76.3.16. WriteToEditMap

Write value from UI to temporary structure

Function parameters

  • string key

  • string value

Return value

  • boolean - successfull

76.3.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)

76.3.18. WriteXinetd

Write current configuration

Return value

  • boolean - result of function (true/false)

76.4. Global Variables

76.4.1. DEFAULT_CONFIG

map of deafult values for options in UI

76.4.2. EDIT_SETTINGS

map <string, string > of vsftpd settings

76.4.3. PURE_SETTINGS

map <string, string > of pure-ftpd settings

76.4.4. UI_keys

list of keys from map DEFAULT_CONFIG

76.4.5. VS_SETTINGS

map <string, string > of vsftpd settings

76.4.6. anon_homedir

variable signifies home dir for anonymous user

76.4.7. anon_uid

variable signifies uid for anonymous user

76.4.8. change_permissions

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

76.4.9. create_upload_dir

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

76.4.10. ftps

76.4.11. modified

Data was modified?

76.4.12. proposal_valid

general variable for proposal

76.4.13. pure_ftp_allowed_permissios_upload

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

76.4.14. pure_ftp_xinetd_running

variable signifies if daemon is running via xinetd

76.4.15. pure_ftpd_xinet_conf

list includes xinetd server_args for pure-ftpd

76.4.16. pureftpd_installed

variable signifies if pure-ftpd is installed and

76.4.17. pureftpd_xined_id

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

76.4.18. start_xinetd

variable signifies if daemon will be started via xinetd

76.4.19. stop_daemon_xinetd

variable signifies if daemon will be stoped in xinetd

76.4.20. upload_good_permission

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

76.4.21. vsftp_xinetd_running

variable signifies if daemon is running via xinetd

76.4.22. vsftpd_edit

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

76.4.23. vsftpd_installed

variable signifies if vsftpd is installed and

76.4.24. vsftpd_xined_id

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

76.4.25. write_only

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

76.5. Module Requirements

76.5.1. Module Imports

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

76.5.2. Module Includes

  • ftp-server/write_load.ycp