pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
local authentication with md5
3+ messages / 2 participants
[nested] [flat]

* local authentication with md5
@ 2008-03-30 16:56  Bernhard D Rohrer <graylion@sm-wg.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Bernhard D Rohrer @ 2008-03-30 16:56 UTC (permalink / raw)
  To: pgsql-admin

Hi all

I have set my authentication to

# "local" is for Unix domain socket connections only
local   all         all                               md5 #ident sameuser

for security reasons

this leads to this problem when trying to run a script:

30-Mar 17:47 collab-dir: BeforeJob: run command 
"/etc/bacula/scripts/make_catalog_backup bacula postgres 
'md5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'"
30-Mar 17:47 collab-dir: BeforeJob: pg_dump: [archiver (db)] connection 
to database "bacula" failed: FATAL: Ident authentication failed for user 
"postgres"

how does one pass an md5 encrypted pw to postgres? I tried it with clear 
as well, but that failed too. Not happy doing that anyway.

many thanks in advance

Bernhard

-- 
Graylion's Fetish & Fashion Store
Goth and Kinky Boots, Clothing and Jewellery
http://www.graylion.net




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: local authentication with md5
@ 2008-03-30 19:32  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Bernhard D Rohrer <graylion@sm-wg.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2008-03-30 19:32 UTC (permalink / raw)
  To: Bernhard D Rohrer <graylion@sm-wg.net>; +Cc: pgsql-admin

Bernhard D Rohrer <graylion@sm-wg.net> writes:
> I have set my authentication to
> # "local" is for Unix domain socket connections only
> local   all         all                               md5 #ident sameuser

Are you sure this actually took effect (ie did you "pg_ctl reload")?

> 30-Mar 17:47 collab-dir: BeforeJob: run command 
> "/etc/bacula/scripts/make_catalog_backup bacula postgres 
> 'md5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'"
> 30-Mar 17:47 collab-dir: BeforeJob: pg_dump: [archiver (db)] connection 
> to database "bacula" failed: FATAL: Ident authentication failed for user 
> "postgres"

It's clear that this connection is trying to use ident not md5.
Either you didn't make the pg_hba edit take effect, or bacula
is trying to use TCP instead of Unix-socket connection and you
still have the "host" line set to ident.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: local authentication with md5
@ 2008-03-30 19:34  Bernhard D Rohrer <graylion@sm-wg.net>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Bernhard D Rohrer @ 2008-03-30 19:34 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin

Tom Lane wrote:
> Bernhard D Rohrer <graylion@sm-wg.net> writes:
>> I have set my authentication to
>> # "local" is for Unix domain socket connections only
>> local   all         all                               md5 #ident sameuser
> 
> Are you sure this actually took effect (ie did you "pg_ctl reload")?
> 
>> 30-Mar 17:47 collab-dir: BeforeJob: run command 
>> "/etc/bacula/scripts/make_catalog_backup bacula postgres 
>> 'md5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'"
>> 30-Mar 17:47 collab-dir: BeforeJob: pg_dump: [archiver (db)] connection 
>> to database "bacula" failed: FATAL: Ident authentication failed for user 
>> "postgres"
> 
> It's clear that this connection is trying to use ident not md5.
> Either you didn't make the pg_hba edit take effect, or bacula
> is trying to use TCP instead of Unix-socket connection and you
> still have the "host" line set to ident.
> 
> 			regards, tom lane

The bizarre thing is that removing #ident sameuser solved it

clearly the # is not parsed correctly after a statement

cheers

Bernhard

-- 
Graylion's Fetish & Fashion Store
Goth and Kinky Boots, Clothing and Jewellery
http://www.graylion.net



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2008-03-30 19:34 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-03-30 16:56 local authentication with md5 Bernhard D Rohrer <graylion@sm-wg.net>
2008-03-30 19:32 ` Tom Lane <tgl@sss.pgh.pa.us>
2008-03-30 19:34   ` Bernhard D Rohrer <graylion@sm-wg.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox