PageRenderTime 50ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/silversupport/service/postgis-pg_hba.conf

https://bitbucket.org/ianb/silverlining/
Config | 87 lines | 78 code | 9 blank | 0 comment | 0 complexity | 03e2712a8a285e0db4c101506643e0dd MD5 | raw file
Possible License(s): GPL-2.0
  1. # PostgreSQL Client Authentication Configuration File
  2. # ===================================================
  3. #
  4. # Refer to the "Client Authentication" section in the
  5. # PostgreSQL documentation for a complete description
  6. # of this file. A short synopsis follows.
  7. #
  8. # This file controls: which hosts are allowed to connect, how clients
  9. # are authenticated, which PostgreSQL user names they can use, which
  10. # databases they can access. Records take one of these forms:
  11. #
  12. # local DATABASE USER METHOD [OPTION]
  13. # host DATABASE USER CIDR-ADDRESS METHOD [OPTION]
  14. # hostssl DATABASE USER CIDR-ADDRESS METHOD [OPTION]
  15. # hostnossl DATABASE USER CIDR-ADDRESS METHOD [OPTION]
  16. #
  17. # (The uppercase items must be replaced by actual values.)
  18. #
  19. # The first field is the connection type: "local" is a Unix-domain socket,
  20. # "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an
  21. # SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket.
  22. #
  23. # DATABASE can be "all", "sameuser", "samerole", a database name, or
  24. # a comma-separated list thereof.
  25. #
  26. # USER can be "all", a user name, a group name prefixed with "+", or
  27. # a comma-separated list thereof. In both the DATABASE and USER fields
  28. # you can also write a file name prefixed with "@" to include names from
  29. # a separate file.
  30. #
  31. # CIDR-ADDRESS specifies the set of hosts the record matches.
  32. # It is made up of an IP address and a CIDR mask that is an integer
  33. # (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies
  34. # the number of significant bits in the mask. Alternatively, you can write
  35. # an IP address and netmask in separate columns to specify the set of hosts.
  36. #
  37. # METHOD can be "trust", "reject", "md5", "crypt", "password", "gss", "sspi",
  38. # "krb5", "ident", "pam" or "ldap". Note that "password" sends passwords
  39. # in clear text; "md5" is preferred since it sends encrypted passwords.
  40. #
  41. # OPTION is the ident map or the name of the PAM service, depending on METHOD.
  42. #
  43. # Database and user names containing spaces, commas, quotes and other special
  44. # characters must be quoted. Quoting one of the keywords "all", "sameuser" or
  45. # "samerole" makes the name lose its special character, and just match a
  46. # database or username with that name.
  47. #
  48. # This file is read on server startup and when the postmaster receives
  49. # a SIGHUP signal. If you edit the file on a running system, you have
  50. # to SIGHUP the postmaster for the changes to take effect. You can use
  51. # "pg_ctl reload" to do that.
  52. # Put your actual configuration here
  53. # ----------------------------------
  54. #
  55. # If you want to allow non-local connections, you need to add more
  56. # "host" records. In that case you will also need to make PostgreSQL listen
  57. # on a non-local interface via the listen_addresses configuration parameter,
  58. # or via the -i or -h command line switches.
  59. #
  60. # DO NOT DISABLE!
  61. # If you change this first entry you will need to make sure that the
  62. # database
  63. # super user can access the database using some other method.
  64. # Noninteractive
  65. # access to all databases is required during automatic maintenance
  66. # (custom daily cronjobs, replication, and similar tasks).
  67. #
  68. # This is for general databases access:
  69. local all all trust
  70. # Database administrative login by UNIX sockets
  71. local all postgres ident
  72. # TYPE DATABASE USER CIDR-ADDRESS METHOD
  73. # "local" is for Unix domain socket connections only
  74. local all all ident
  75. # IPv4 local connections:
  76. host all all 127.0.0.1/32 md5
  77. # IPv6 local connections:
  78. host all all ::1/128 md5