pureftpd-pgsql.conf 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. ###################################################
  2. # #
  3. # Sample Pure-FTPd PostgreSQL configuration file. #
  4. # See README.PGSQL for explanations. #
  5. # #
  6. ###################################################
  7. # If PostgreSQL listens to a TCP socket
  8. PGSQLServer localhost
  9. PGSQLPort 5432
  10. # *or* if PostgreSQL can only be reached through a local Unix socket
  11. # PGSQLServer /tmp
  12. # PGSQLPort .s.PGSQL.5432
  13. # Mandatory : user to bind the server as.
  14. PGSQLUser postgres
  15. # Mandatory : user password. You *must* have a password.
  16. PGSQLPassword rootpw
  17. # Mandatory : database to open.
  18. PGSQLDatabase pureftpd
  19. # Mandatory : how passwords are stored
  20. # Valid values are : "cleartext", "argon2", "scrypt", "crypt", "md5", "sha1" and "any"
  21. PGSQLCrypt scrypt
  22. # In the following directives, parts of the strings are replaced at
  23. # run-time before performing queries :
  24. #
  25. # \L is replaced by the login of the user trying to authenticate.
  26. # \I is replaced by the IP address the user connected to.
  27. # \P is replaced by the port number the user connected to.
  28. # \R is replaced by the IP address the user connected from.
  29. # \D is replaced by the remote IP address, as a long decimal number.
  30. #
  31. # Very complex queries can be performed using these substitution strings,
  32. # especially for virtual hosting.
  33. # Query to execute in order to fetch the password
  34. PGSQLGetPW SELECT "Password" FROM users WHERE "User"='\L'
  35. # Query to execute in order to fetch the system user name or uid
  36. PGSQLGetUID SELECT "Uid" FROM users WHERE "User"='\L'
  37. # Optional : default UID - if set this overrides PGSQLGetUID
  38. #PGSQLDefaultUID 1000
  39. # Query to execute in order to fetch the system user group or gid
  40. PGSQLGetGID SELECT "Gid" FROM users WHERE "User"='\L'
  41. # Optional : default GID - if set this overrides PGSQLGetGID
  42. #PGSQLDefaultGID 1000
  43. # Query to execute in order to fetch the home directory
  44. PGSQLGetDir SELECT "Dir" FROM users WHERE "User"='\L'
  45. # Optional : query to get the maximal number of files
  46. # Pure-FTPd must have been compiled with virtual quotas support.
  47. # PGSQLGetQTAFS SELECT "QuotaFiles" FROM users WHERE "User"='\L'
  48. # Optional : query to get the maximal disk usage (virtual quotas)
  49. # The number should be in Megabytes.
  50. # Pure-FTPd must have been compiled with virtual quotas support.
  51. # PGSQLGetQTASZ SELECT "QuotaSize" FROM users WHERE "User"='\L'
  52. # Optional : ratios. The server has to be compiled with ratio support.
  53. # PGSQLGetRatioUL SELECT "ULRatio" FROM users WHERE "User"='\L'
  54. # PGSQLGetRatioDL SELECT "DLRatio" FROM users WHERE "User"='\L'
  55. # Optional : bandwidth throttling.
  56. # The server has to be compiled with throttling support.
  57. # Values are in KB/s .
  58. # PGSQLGetBandwidthUL SELECT "ULBandwidth" FROM users WHERE "User"='\L'
  59. # PGSQLGetBandwidthDL SELECT "DLBandwidth" FROM users WHERE "User"='\L'