Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 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.  
  11. # databases they can access. Records take one of these forms:
  12. #
  13. # local DATABASE USER METHOD [OPTIONS]
  14. # host DATABASE USER CIDR-ADDRESS METHOD [OPTIONS]
  15. # hostssl DATABASE USER CIDR-ADDRESS METHOD [OPTIONS]
  16. # hostnossl DATABASE USER CIDR-ADDRESS METHOD [OPTIONS]
  17. #
  18. # (The uppercase items must be replaced by actual values.)
  19. #
  20. # The first field is the connection type: "local" is a Unix-domain socket,
  21. # "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an
  22. # SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket.
  23. #
  24. # DATABASE can be "all", "sameuser", "samerole", a database name, or
  25. # a comma-separated list thereof.
  26. #
  27. # USER can be "all", a user name, a group name prefixed with "+", or
  28. # a comma-separated list thereof. In both the DATABASE and USER fields
  29. # you can also write a file name prefixed with "@" to include names from
  30. # a separate file.
  31. #
  32.  
  33. # CIDR-ADDRESS specifies the set of hosts the record matches.
  34. # It is made up of an IP address and a CIDR mask that is an integer
  35. # (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies
  36. # the number of significant bits in the mask. Alternatively, you can write
  37. # an IP address and netmask in separate columns to specify the set of hosts.
  38. #
  39. # METHOD can be "trust", "reject", "md5", "password", "gss", "sspi", "krb5",
  40. # "ident", "pam", "ldap" or "cert". Note that "password" sends passwords
  41. # in clear text; "md5" is preferred since it sends encrypted passwords.
  42. #
  43. # OPTIONS are a set of options for the authentication in the format
  44. # NAME=VALUE. The available options depend on the different authentication
  45. # methods - refer to the "Client Authentication" section in the documentation
  46. # for a list of which options are available for which authentication methods.
  47. #
  48. # Database and user names containing spaces, commas, quotes and other special
  49. # characters must be quoted. Quoting one of the keywords "all", "sameuser" or
  50. # "samerole" makes the name lose its special character, and just match a
  51. # database or username with that name.
  52. #
  53. # This file is read on server startup and when the postmaster receives
  54.  
  55. # a SIGHUP signal. If you edit the file on a running system, you have
  56. # to SIGHUP the postmaster for the changes to take effect. You can use
  57. # "pg_ctl reload" to do that.
  58.  
  59. # Put your actual configuration here
  60. # ----------------------------------
  61. #
  62. # If you want to allow non-local connections, you need to add more
  63. # "host" records. In that case you will also need to make PostgreSQL listen
  64. # on a non-local interface via the listen_addresses configuration parameter,
  65. # or via the -i or -h command line switches.
  66. #
  67.  
  68.  
  69.  
  70. # TYPE DATABASE USER CIDR-ADDRESS METHOD
  71.  
  72. # "local" is for Unix domain socket connections only
  73. local all all ident
  74. # IPv4 local connections:
  75. host all all 127.0.0.1/32 ident
  76. # IPv6 local connections:
  77. host all all ::1/128 ident
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement