pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Harris <sharris@concepts.co.nz>
To: pgsql-admin@postgresql.org
Subject: ident sameuser failure
Date: Mon, 24 Feb 2003 09:03:47 +1300
Message-ID: <3E592923.4070204@concepts.co.nz> (raw)

Hi all, I have a problem that I am chasing and getting nowhere with.
Can anyone help?
I have postgresql-7.2.1-5 running as the server on a redhat7.3 box.
I am connecting from a redhat8.0 box with postgresql-7.2.2-1 using both
psql and pgaccess.
My pg_hba.conf looks like this:

local   all     ident   sameuser
host       testuserdb    192.168.0.0    255.255.255.0   ident 	sameuser
host       testdb        192.168.0.0    255.255.255.0   password

Now the scenenario is like this:

User test can connect to database testdb with a password.
User testuser cannot connect to database testuserdb and gets these errors
psql -h workbench -d testuserdb -U testuser
psql: FATAL 1:  IDENT authentication failed for user "testuser"

on the server I made (as postgres) the users test and testuser, then
became each user and created the testdb and testuserdb.

I have tried making a usermap in pg_ident.conf

testuser                testuser        testuser

and tried the line

host       testuserdb    192.168.0.0    255.255.255.0 ident testuser

But still no change.
Testuser can connect if AUTH_TYPE is trust however.

Can anyone lend a pinch of advice that may be the problem here?
many thanks
Stephen.



Computer Concepts Limited
25 Leslie Hills Drive
PO Box 8744 Riccarton
Christchurch, New Zealand

Phone:  +64-3-348-2500
Fax:    +64-3-343-7569

Notice of confidential information:
The information contained in this e-mail message is 
confidential information and may also be legally privileged, 
intended only for the individual or entity named above.  
If you are not the intended recipient you are hereby
notified that any use, review, dissemination, distribution
or copying of this document is strictly prohibited.
If you have received this document in error, please 
immediately notify the sender by telephone and destroy the
message. Thank you.



view thread (6+ messages)  latest in thread

Message-ID: <3E592923.4070204@concepts.co.nz>
Permalink:  ../3E592923.4070204@concepts.co.nz/
Also on:    postgresql.org/message-id/3E592923.4070204@concepts.co.nz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sharris@concepts.co.nz
  Subject: Re: ident sameuser failure
  In-Reply-To: <3E592923.4070204@concepts.co.nz>
  References: <3E592923.4070204@concepts.co.nz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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