Re: Ident authentication is not supported on local connections - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Ident authentication is not supported on local connections
Date
Msg-id 200403232137.i2NLbd703493@candle.pha.pa.us
Whole thread Raw
In response to Ident authentication is not supported on local connections on this platform  (<wespvp@syntegra.com>)
List pgsql-general
wespvp@syntegra.com wrote:
> I'm running PostgreSQL 7.4.1 and trying to use an application on Solaris
> that relies on "ident sameuser".  In the postgres log I get:
>
>   "Ident authentication is not supported on local connections on this
> platform"
>
> The only thread I could find on this seems to indicate a patch was put in
> way back at 7.1.2.
>
> Is there a way to get this to work on Solaris?

It can be added if you tell us how you can find out who is the user on
the other end of a unix domain socket.  See src/backend/libpq/auth.h and
hba.c and look for mentions of CRED to see how other platforms do it.
It is usually some system call like get/setsockopt().

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: Bill Moran
Date:
Subject: Re: partial VACUUM FULL
Next
From: Frank Finner
Date:
Subject: Re: partial VACUUM FULL