74be6913f557dc6210e76617a5db65f563bfea4c
[odoo/odoo.git] / setup / windows / pg_hba.conf
1 # PostgreSQL Client Authentication Configuration File\r
2 # ===================================================\r
3 #\r
4 # Refer to the PostgreSQL Administrator's Guide, chapter "Client\r
5 # Authentication" for a complete description.  A short synopsis\r
6 # follows.\r
7 #\r
8 # This file controls: which hosts are allowed to connect, how clients\r
9 # are authenticated, which PostgreSQL user names they can use, which\r
10 # databases they can access.  Records take one of these forms:\r
11 #\r
12 # local      DATABASE  USER  METHOD  [OPTION]\r
13 # host       DATABASE  USER  CIDR-ADDRESS  METHOD  [OPTION]\r
14 # hostssl    DATABASE  USER  CIDR-ADDRESS  METHOD  [OPTION]\r
15 # hostnossl  DATABASE  USER  CIDR-ADDRESS  METHOD  [OPTION]\r
16 #\r
17 # (The uppercase items must be replaced by actual values.)\r
18 #\r
19 # The first field is the connection type: "local" is a Unix-domain socket,\r
20 # "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an\r
21 # SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket.\r
22 #\r
23 # DATABASE can be "all", "sameuser", "samerole", a database name, or\r
24 # a comma-separated list thereof.\r
25 #\r
26 # USER can be "all", a user name, a group name prefixed with "+", or\r
27 # a comma-separated list thereof.  In both the DATABASE and USER fields\r
28 # you can also write a file name prefixed with "@" to include names from\r
29 # a separate file.\r
30 #\r
31 # CIDR-ADDRESS specifies the set of hosts the record matches.\r
32 # It is made up of an IP address and a CIDR mask that is an integer\r
33 # (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies\r
34 # the number of significant bits in the mask.  Alternatively, you can write\r
35 # an IP address and netmask in separate columns to specify the set of hosts.\r
36 #\r
37 # METHOD can be "trust", "reject", "md5", "crypt", "password",\r
38 # "krb5", "ident", or "pam".  Note that "password" sends passwords\r
39 # in clear text; "md5" is preferred since it sends encrypted passwords.\r
40 #\r
41 # OPTION is the ident map or the name of the PAM service, depending on METHOD.\r
42 #\r
43 # Database and user names containing spaces, commas, quotes and other special\r
44 # characters must be quoted. Quoting one of the keywords "all", "sameuser" or\r
45 # "samerole" makes the name lose its special character, and just match a\r
46 # database or username with that name.\r
47 #\r
48 # This file is read on server startup and when the postmaster receives\r
49 # a SIGHUP signal.  If you edit the file on a running system, you have\r
50 # to SIGHUP the postmaster for the changes to take effect.  You can use\r
51 # "pg_ctl reload" to do that.\r
52 \r
53 # Put your actual configuration here\r
54 # ----------------------------------\r
55 #\r
56 # If you want to allow non-local connections, you need to add more\r
57 # "host" records. In that case you will also need to make PostgreSQL listen\r
58 # on a non-local interface via the listen_addresses configuration parameter,\r
59 # or via the -i or -h command line switches.\r
60 #\r
61 \r
62 \r
63 \r
64 # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD\r
65 \r
66 # IPv4 local connections:\r
67 host    all         all         127.0.0.1/32          trust\r
68 # IPv6 local connections:\r
69 #host    all         all         ::1/128               md5\r
70 \r
71 # foreign connections\r
72 host    all     all             0.0.0.0/0                       md5\r
73 host  all   all         ::/0                    md5\r