pureftpd-mysql.conf 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. ##############################################
  2. # #
  3. # Sample Pure-FTPd Mysql configuration file. #
  4. # See README.MySQL for explanations. #
  5. # #
  6. ##############################################
  7. # Optional : MySQL server name or IP. Don't define this for unix sockets.
  8. # MYSQLServer 127.0.0.1
  9. # Optional : MySQL port. Don't define this if a local unix socket is used.
  10. # MYSQLPort 3306
  11. # Optional : define the location of mysql.sock if the server runs on this host.
  12. MYSQLSocket /var/run/mysqld/mysqld.sock
  13. # Mandatory : user to bind the server as.
  14. MYSQLUser root
  15. # Mandatory : user password. You must have a password.
  16. MYSQLPassword rootpw
  17. # Mandatory : database to open.
  18. MYSQLDatabase pureftpd
  19. # Mandatory : how passwords are stored
  20. # Valid values are : "cleartext", "argon2", "scrypt", "crypt", "sha1", "md5", "password" and "any"
  21. # ("password" = MySQL password() function, which is sha1(sha1(password)))
  22. MYSQLCrypt scrypt
  23. # In the following directives, parts of the strings are replaced at
  24. # run-time before performing queries :
  25. #
  26. # \L is replaced by the login of the user trying to authenticate.
  27. # \I is replaced by the IP address the user connected to.
  28. # \P is replaced by the port number the user connected to.
  29. # \R is replaced by the IP address the user connected from.
  30. # \D is replaced by the remote IP address, as a long decimal number.
  31. #
  32. # Very complex queries can be performed using these substitution strings,
  33. # especially for virtual hosting.
  34. # Query to execute in order to fetch the password
  35. MYSQLGetPW SELECT Password FROM users WHERE User='\L'
  36. # Query to execute in order to fetch the system user name or uid
  37. MYSQLGetUID SELECT Uid FROM users WHERE User='\L'
  38. # Optional : default UID - if set this overrides MYSQLGetUID
  39. #MYSQLDefaultUID 1000
  40. # Query to execute in order to fetch the system user group or gid
  41. MYSQLGetGID SELECT Gid FROM users WHERE User='\L'
  42. # Optional : default GID - if set this overrides MYSQLGetGID
  43. #MYSQLDefaultGID 1000
  44. # Query to execute in order to fetch the home directory
  45. MYSQLGetDir SELECT Dir FROM users WHERE User='\L'
  46. # Optional : query to get the maximal number of files
  47. # Pure-FTPd must have been compiled with virtual quotas support.
  48. # MySQLGetQTAFS SELECT QuotaFiles FROM users WHERE User='\L'
  49. # Optional : query to get the maximal disk usage (virtual quotas)
  50. # The number should be in Megabytes.
  51. # Pure-FTPd must have been compiled with virtual quotas support.
  52. # MySQLGetQTASZ SELECT QuotaSize FROM users WHERE User='\L'
  53. # Optional : ratios. The server has to be compiled with ratio support.
  54. # MySQLGetRatioUL SELECT ULRatio FROM users WHERE User='\L'
  55. # MySQLGetRatioDL SELECT DLRatio FROM users WHERE User='\L'
  56. # Optional : bandwidth throttling.
  57. # The server has to be compiled with throttling support.
  58. # Values are in KB/s .
  59. # MySQLGetBandwidthUL SELECT ULBandwidth FROM users WHERE User='\L'
  60. # MySQLGetBandwidthDL SELECT DLBandwidth FROM users WHERE User='\L'
  61. # Enable ~ expansion. NEVER ENABLE THIS BLINDLY UNLESS :
  62. # 1) You know what you are doing.
  63. # 2) Real and virtual users match.
  64. # MySQLForceTildeExpansion 1
  65. # If you're using a transactionnal storage engine, you can enable SQL
  66. # transactions to avoid races. Leave this commented if you are using the
  67. # traditional MyIsam engine.
  68. # MySQLTransactions On