From: Stephen Harris <sharris@concepts.co.nz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: ident sameuser failure
Date: Thu, 27 Feb 2003 14:00:24 +1300
Message-ID: <3E5D6328.3040704@concepts.co.nz> (raw)
In-Reply-To: <27047.1046236716@sss.pgh.pa.us>
References: <3E5A801B.7010903@concepts.co.nz>
<6460.1046132486@sss.pgh.pa.us>
<3E5C2335.9040606@concepts.co.nz>
<27047.1046236716@sss.pgh.pa.us>
Well, I'll be ...
I changed postmaster to log to a file, but that didnt reveal much.
I upped the syslog vebosity to debug in identd.conf and added an entry
daemon.* /var/log/postmaster.log in syslog.conf.
Then as user sharris I did:
psql -h workbench -d testuserdb -U testuser
While doing tail -f /var/log/postmaster.log
I saw
Feb 27 00:47:05 freeflight identd[20989]: reply to 192.168.0.141:
36458, 5432 : USERID : OTHER :504
So that got me wondering, does the U switch work?
So I su - 'ed testuser and did
psql -h workbench -d testuserdb
I saw
Feb 27 00:49:53 freeflight identd[21082]: reply to 192.168.0.141:
36465, 5432 : USERID : OTHER :testuser
And was given the database shell.
Testusers uid on the client is 1293 and on the server is 501.
However, as soon as I stop identd it stops working.
So you were right, it all comes down to identd, but the U switch in psql
should of worked?
Perhaps I should make the uids match?
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.
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, tgl@sss.pgh.pa.us
Subject: Re: ident sameuser failure
In-Reply-To: <3E5D6328.3040704@concepts.co.nz>
References: <3E5A801B.7010903@concepts.co.nz> <6460.1046132486@sss.pgh.pa.us> <3E5C2335.9040606@concepts.co.nz> <27047.1046236716@sss.pgh.pa.us> <3E5D6328.3040704@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