Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
fd7673bc
Commit
fd7673bc
authored
Jan 26, 2010
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the default pg_hba.conf and pg_ident.conf align at 8-character boundaries
to make it easier to use with tabs.
parent
aed1a012
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
35 deletions
+35
-35
doc/src/sgml/backup.sgml
doc/src/sgml/backup.sgml
+3
-3
doc/src/sgml/client-auth.sgml
doc/src/sgml/client-auth.sgml
+27
-27
src/backend/libpq/pg_hba.conf.sample
src/backend/libpq/pg_hba.conf.sample
+4
-4
src/backend/libpq/pg_ident.conf.sample
src/backend/libpq/pg_ident.conf.sample
+1
-1
No files found.
doc/src/sgml/backup.sgml
View file @
fd7673bc
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.13
8 2010/01/24 14:46:01 mha
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.13
9 2010/01/26 06:45:31 petere
Exp $ -->
<chapter id="backup">
<title>Backup and Restore</title>
...
...
@@ -2046,8 +2046,8 @@ if (!triggered)
# Allow the user "foo" from host 192.168.1.100 to connect to the primary
# as a replication standby if the user's password is correctly supplied.
#
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
host replication
foo 192.168.1.100/32
md5
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
host replication
foo 192.168.1.100/32
md5
</programlisting>
</para>
<para>
...
...
doc/src/sgml/client-auth.sgml
View file @
fd7673bc
<!-- $PostgreSQL: pgsql/doc/src/sgml/client-auth.sgml,v 1.12
6 2010/01/15 09:18:56 heikki
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/client-auth.sgml,v 1.12
7 2010/01/26 06:45:31 petere
Exp $ -->
<chapter id="client-authentication">
<title>Client Authentication</title>
...
...
@@ -492,31 +492,31 @@ hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable>
# any database user name using Unix-domain sockets (the default for local
# connections).
#
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
local all
all
trust
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
local all
all
trust
# The same using local loopback TCP/IP connections.
#
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
host all
all 127.0.0.1/32
trust
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
host all
all 127.0.0.1/32
trust
# The same as the previous line, but using a separate netmask column
#
# TYPE DATABASE
USER IP-ADDRESS
IP-MASK METHOD
host all
all 127.0.0.1
255.255.255.255 trust
# TYPE DATABASE
USER IP-ADDRESS
IP-MASK METHOD
host all
all 127.0.0.1
255.255.255.255 trust
# Allow any user from any host with IP address 192.168.93.x to connect
# to database "postgres" as the same user name that ident reports for
# the connection (typically the Unix user name).
#
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
host postgres
all 192.168.93.0/24
ident
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
host postgres
all 192.168.93.0/24
ident
# Allow any user from host 192.168.12.10 to connect to database
# "postgres" if the user's password is correctly supplied.
#
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
host postgres
all 192.168.12.10/32
md5
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
host postgres
all 192.168.12.10/32
md5
# In the absence of preceding "host" lines, these two lines will
# reject all connections from 192.168.54.1 (since that entry will be
...
...
@@ -524,9 +524,9 @@ host postgres all 192.168.12.10/32 md5
# on the Internet. The zero mask means that no bits of the host IP
# address are considered so it matches any host.
#
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
host all
all 192.168.54.1/32
reject
host all
all 0.0.0.0/0
krb5
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
host all
all 192.168.54.1/32
reject
host all
all 0.0.0.0/0
krb5
# Allow users from 192.168.x.x hosts to connect to any database, if
# they pass the ident check. If, for example, ident says the user is
...
...
@@ -534,8 +534,8 @@ host all all 0.0.0.0/0 krb5
# connection is allowed if there is an entry in pg_ident.conf for map
# "omicron" that says "bryanh" is allowed to connect as "guest1".
#
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
host all
all 192.168.0.0/16
ident map=omicron
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
host all
all 192.168.0.0/16
ident map=omicron
# If these are the only three lines for local connections, they will
# allow local users to connect only to their own databases (databases
...
...
@@ -544,16 +544,16 @@ host all all 192.168.0.0/16 ident map=omicron
# $PGDATA/admins contains a list of names of administrators. Passwords
# are required in all cases.
#
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
local sameuser
all
md5
local all
@admins
md5
local all
+support
md5
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
local sameuser
all
md5
local all
@admins
md5
local all
+support
md5
# The last two lines above can be combined into a single line:
local all
@admins,+support
md5
local all
@admins,+support
md5
# The database column can also use lists and file names:
local db1,db2,@demodbs all md5
local db1,db2,@demodbs all
md5
</programlisting>
</example>
</sect1>
...
...
@@ -668,14 +668,14 @@ mymap /^(.*)@otherdomain\.com$ guest
<example id="example-pg-ident.conf">
<title>An example <filename>pg_ident.conf</> file</title>
<programlisting>
# MAPNAME
SYSTEM-USERNAME
PG-USERNAME
# MAPNAME
SYSTEM-USERNAME
PG-USERNAME
omicron
bryanh
bryanh
omicron
ann
ann
omicron
bryanh
bryanh
omicron
ann
ann
# bob has user name robert on these machines
omicron
robert
bob
omicron
robert
bob
# bryanh can also connect as guest1
omicron
bryanh
guest1
omicron
bryanh
guest1
</programlisting>
</example>
</sect1>
...
...
src/backend/libpq/pg_hba.conf.sample
View file @
fd7673bc
...
...
@@ -67,11 +67,11 @@
@authcomment@
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
# TYPE DATABASE
USER CIDR-ADDRESS
METHOD
@remove-line-for-nolocal@# "local" is for Unix domain socket connections only
@remove-line-for-nolocal@local all
all
@authmethod@
@remove-line-for-nolocal@local all
all
@authmethod@
# IPv4 local connections:
host all
all 127.0.0.1/32
@authmethod@
host all
all 127.0.0.1/32
@authmethod@
# IPv6 local connections:
host all
all ::1/128
@authmethod@
host all
all ::1/128
@authmethod@
src/backend/libpq/pg_ident.conf.sample
View file @
fd7673bc
...
...
@@ -37,4 +37,4 @@
# Put your actual configuration here
# ----------------------------------
# MAPNAME
SYSTEM-USERNAME
PG-USERNAME
# MAPNAME
SYSTEM-USERNAME
PG-USERNAME
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment