pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_hba.conf and ident authentification
6+ messages / 4 participants
[nested] [flat]
* pg_hba.conf and ident authentification
@ 2001-04-12 00:52 Jozef KRSSAK <krssak@upc.uniba.sk>
0 siblings, 4 replies; 6+ messages in thread
From: Jozef KRSSAK @ 2001-04-12 00:52 UTC (permalink / raw)
To: pgsql-admin
I don't know, what is problem, see next please:
1. OS:
debian linux 2.2.x
2. postgres version:
6.5.3
3. auth deamon runing
4. name of my account:
krssak
5. pg_hba.conf:
local rocnikovy trust
host rocnikovy 127.0.0.1 255.255.255.255 ident map
6. pg_ident.conf:
map krssak jozok
7. create user jozok;
8. select * from pg_shadow; :
usename |usesysid|usecreatedb|usetrace|usesuper|usecatupd|passwd|valuntil
--------+--------+-----------+--------+--------+---------+------+---------------
-------
jozok | 1091|f |f |f |f | |
postgres| 31|t |t |t |t |
|2037-01-31 07:0
0:00+01
9.
krssak@pec:~$ psql -h localhost -d rocnikovy
Connection to database 'rocnikovy' failed.
IDENT authentication failed for user 'krssak'
krssak@pec:~$
what am I missing?
thanks
====================================================================
Univerzitne pastoracne centrum bl. Jozefa Freinademetza v Bratislave
Jozef Krssak
krssak@upc.uniba.sk tel. 0905 906 297
====================================================================
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg_hba.conf and ident authentification
@ 2001-04-12 11:53 Jozef Krssak <krssak@upc.uniba.sk>
parent: Jozef KRSSAK <krssak@upc.uniba.sk>
3 siblings, 1 reply; 6+ messages in thread
From: Jozef Krssak @ 2001-04-12 11:53 UTC (permalink / raw)
To: pgsql-admin
of course:
postmaster.init:
PGALLOWTCPIP=yes
---------------------------
Jozef KRSSAK
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg_hba.conf and ident authentification
@ 2001-04-12 12:04 Jozef Krssak <krssak@upc.uniba.sk>
parent: Jozef Krssak <krssak@upc.uniba.sk>
0 siblings, 0 replies; 6+ messages in thread
From: Jozef Krssak @ 2001-04-12 12:04 UTC (permalink / raw)
To: pgsql-admin
sorry, I want to say:
PGALLOWTCPIP=yes
but nothing
krssak@pec:~$ psql -h localhost -d rocnikovy
Connection to database 'rocnikovy' failed.
IDENT authentication failed for user 'krssak'
krssak@pec:~$
Jozef Krssak
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg_hba.conf and ident authentification
@ 2001-04-12 12:43 Jozef Krssak <krssak@upc.uniba.sk>
parent: Jozef KRSSAK <krssak@upc.uniba.sk>
3 siblings, 0 replies; 6+ messages in thread
From: Jozef Krssak @ 2001-04-12 12:43 UTC (permalink / raw)
To: pgsql-admin
>This is just a guess, which may be wrong as you did not post your postmaster
>options and the error message explicitly points out IDENT as the culprit. If
>my guess is wrong, your IDENT setup would be a good place to look (and
>tcpwrappers or anything else that might affect).
IDENT setup is OK, I think:
/var/log/syslog:
Apr 12 14:14:55 pec identd[5349]: reply to 127.0.0.1: 1610 , 5432 : USERID : UNIX
:krssak
--------------------------
Jozef KRSSAK
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg_hba.conf and ident authentification
@ 2001-04-12 13:01 root <root@dennis.veritime.com>
parent: Jozef KRSSAK <krssak@upc.uniba.sk>
3 siblings, 0 replies; 6+ messages in thread
From: root @ 2001-04-12 13:01 UTC (permalink / raw)
To: Jozef KRSSAK <krssak@upc.uniba.sk>; pgsql-admin
Check the file permissions on pg_hba.conf, I beat my head against the wall with
a similar situation.
Rodney Hampton
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg_hba.conf and ident authentification
@ 2001-04-12 22:50 Peter Eisentraut <peter_e@gmx.net>
parent: Jozef KRSSAK <krssak@upc.uniba.sk>
3 siblings, 0 replies; 6+ messages in thread
From: Peter Eisentraut @ 2001-04-12 22:50 UTC (permalink / raw)
To: Jozef KRSSAK <krssak@upc.uniba.sk>; +Cc: pgsql-admin
Jozef KRSSAK writes:
> 4. name of my account:
> krssak
>
> 5. pg_hba.conf:
> local rocnikovy trust
> host rocnikovy 127.0.0.1 255.255.255.255 ident map
>
> 6. pg_ident.conf:
> map krssak jozok
>
> 7. create user jozok;
> 9.
> krssak@pec:~$ psql -h localhost -d rocnikovy
> Connection to database 'rocnikovy' failed.
> IDENT authentication failed for user 'krssak'
You need to instruct psql to connect as database user 'jozok'. Otherwise
it will default to 'krssak' and your careful setup is for nought. See
option '-u'.
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2001-04-12 22:50 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-12 00:52 pg_hba.conf and ident authentification Jozef KRSSAK <krssak@upc.uniba.sk>
2001-04-12 11:53 ` Jozef Krssak <krssak@upc.uniba.sk>
2001-04-12 12:04 ` Jozef Krssak <krssak@upc.uniba.sk>
2001-04-12 12:43 ` Jozef Krssak <krssak@upc.uniba.sk>
2001-04-12 13:01 ` root <root@dennis.veritime.com>
2001-04-12 22:50 ` Peter Eisentraut <peter_e@gmx.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