Your message dated Sun, 25 Sep 2011 21:36:17 +0200
with message-id <[email protected]>
and subject line Re: Bug#639016: updates for pg_hba.conf for 9.1, version 2
has caused the Debian Bug report #639016,
regarding updates for pg_hba.conf for 9.1, version 2
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
639016: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639016
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: postgresql-common
Version: 119
Severity: minor
Tags: patch
A second attempt on top of bug #632702.
I have separated things so that the new spelling "peer" is used only
for "local" connections.
Also, I have adjusted the regular expressions so that the newly added,
but commented out, replication lines are also affected by the
adjustments.
diff -Nru postgresql-common-119/debian/changelog postgresql-common-119+nmu1/debian/changelog
--- postgresql-common-119/debian/changelog 2011-08-08 16:33:23.000000000 +0300
+++ postgresql-common-119+nmu1/debian/changelog 2011-08-23 14:05:35.000000000 +0300
@@ -1,3 +1,11 @@
+postgresql-common (119+nmu1) unstable; urgency=low
+
+ * pg_createcluster:
+ - Use "peer" instead of "ident" on local socket connections from 9.1 on.
+ - Apply pg_hba.conf adjustments to replication connections as well.
+
+ -- Peter Eisentraut <[email protected]> Tue, 23 Aug 2011 14:04:09 +0300
+
postgresql-common (119) unstable; urgency=low
[ Martin Pitt ]
diff -Nru postgresql-common-119/pg_createcluster postgresql-common-119+nmu1/pg_createcluster
--- postgresql-common-119/pg_createcluster 2011-08-08 14:27:50.000000000 +0300
+++ postgresql-common-119+nmu1/pg_createcluster 2011-08-23 13:59:59.000000000 +0300
@@ -33,6 +33,11 @@
} else {
$ident_method = 'ident sameuser';
}
+ if ($_[0] ge '9.1') {
+ $peer_method = 'peer';
+ } else {
+ $peer_method = $ident_method;
+ }
if (system 'install', '-d', '-o', $_[2], '-g', $_[3], $datadir) {
error 'could not create data directory; you might need to run this program with root privileges';
@@ -146,19 +151,19 @@
# add superuser entry before column description line
if ($search && /#.*TYPE\s+DATABASE/) {
push @lines, $su_comment;
- $s = sprintf "%-7s %-15s %-39s %s\n", 'local', 'all', $user, $ident_method;
+ $s = sprintf "%-7s %-15s %-39s %s\n", 'local', 'all', $user, $peer_method;
push @lines, $s;
push @lines, "\n";
$search = 0;
}
# default authentication for Unix socket connections
- if ($line =~ /^local/) {
- $line =~ s/trust/$ident_method/;
+ if ($line =~ /^#?local/) {
+ $line =~ s/trust/$peer_method/;
}
# default authentication for TCP connections
- if ($line =~ /^host/) {
+ if ($line =~ /^#?host/) {
$line =~ s/($ident_method|trust)/md5/;
}
push @lines, $line;
--- End Message ---
--- Begin Message ---
Version: 121
Peter Eisentraut [2011-08-23 20:38 +0300]:
> I have separated things so that the new spelling "peer" is used only
> for "local" connections.
>
> Also, I have adjusted the regular expressions so that the newly added,
> but commented out, replication lines are also affected by the
> adjustments.
Thanks. This was fixed in version 121, but I typo'ed the bug number in
the changelog. Closing.
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
--- End Message ---