Re: Need linux uid in pg-psql

From: Chris Travers <chris(dot)travers(at)gmail(dot)com>
To: Alan Hodgson <ahodgson(at)simkin(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Need linux uid in pg-psql
Date: 2011-08-19 15:53:36
Message-ID: CAKt_ZfuJZEbifyHfE_kVzg4YsxLcKcFwCBROaybNM6xx=gG0Dw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Aug 19, 2011 at 8:40 AM, Alan Hodgson <ahodgson(at)simkin(dot)ca> wrote:
> On August 19, 2011 07:01:33 AM Gauthier, Dave wrote:
>> Is there a way to get the linux idsid of a user, even for a remote network
>> connection?
>>
>> I could write a pg-perlu to get this, but I suspect it won't give me the
>> original user when there's a remote connect.
>>
>> Thanks for any suggestions !
>
> There's an identd protocol for this. It's not commonly used anymore, and when
> present tends to deliberately obscure the results.
>
Couldn't you use client ssl certs for authentication and encode the
data there in the cert?

Best Wishes,
Chris Travers

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2011-08-19 15:54:57 Re: Need linux uid in pg-psql
Previous Message Tom Lane 2011-08-19 15:52:50 Re: altering foreign key without a table scan