Advertisement
Guest User

pg_hba.conf 8.4

a guest
Mar 10th, 2014
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. cat /etc/postgresql/8.4/main/pg_hba.conf
  2. # PostgreSQL Client Authentication Configuration File
  3. # ===================================================
  4. #
  5. # Refer to the "Client Authentication" section in the
  6. # PostgreSQL documentation for a complete description
  7. # of this file. A short synopsis follows.
  8. #
  9. # This file controls: which hosts are allowed to connect, how clients
  10. # are authenticated, which PostgreSQL user names they can use, which
  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. # CIDR-ADDRESS specifies the set of hosts the record matches.
  33. # It is made up of an IP address and a CIDR mask that is an integer
  34. # (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies
  35. # the number of significant bits in the mask. Alternatively, you can write
  36. # an IP address and netmask in separate columns to specify the set of hosts.
  37. #
  38. # METHOD can be "trust", "reject", "md5", "password", "gss", "sspi", "krb5",
  39. # "ident", "pam", "ldap" or "cert". Note that "password" sends passwords
  40. # in clear text; "md5" is preferred since it sends encrypted passwords.
  41. #
  42. # OPTIONS are a set of options for the authentication in the format
  43. # NAME=VALUE. The available options depend on the different authentication
  44. # methods - refer to the "Client Authentication" section in the documentation
  45. # for a list of which options are available for which authentication methods.
  46. #
  47. # Database and user names containing spaces, commas, quotes and other special
  48. # characters must be quoted. Quoting one of the keywords "all", "sameuser" or
  49. # "samerole" makes the name lose its special character, and just match a
  50. # database or username with that name.
  51. #
  52. # This file is read on server startup and when the postmaster receives
  53. # a SIGHUP signal. If you edit the file on a running system, you have
  54. # to SIGHUP the postmaster for the changes to take effect. You can use
  55. # "pg_ctl reload" to do that.
  56.  
  57. # Put your actual configuration here
  58. # ----------------------------------
  59. #
  60. # If you want to allow non-local connections, you need to add more
  61. # "host" records. In that case you will also need to make PostgreSQL listen
  62. # on a non-local interface via the listen_addresses configuration parameter,
  63. # or via the -i or -h command line switches.
  64. #
  65.  
  66.  
  67.  
  68.  
  69. # DO NOT DISABLE!
  70. # If you change this first entry you will need to make sure that the
  71. # database
  72. # super user can access the database using some other method.
  73. # Noninteractive
  74. # access to all databases is required during automatic maintenance
  75. # (custom daily cronjobs, replication, and similar tasks).
  76. #
  77. # Database administrative login by UNIX sockets
  78. local all postgres ident
  79.  
  80. # TYPE DATABASE USER CIDR-ADDRESS METHOD
  81.  
  82. # "local" is for Unix domain socket connections only
  83. local all all ident
  84. # IPv4 local connections:
  85. host all all 127.0.0.1/32 md5
  86. # IPv6 local connections:
  87. host all all ::1/128 md5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement