From: Jasen Betts <jasen@xnet.co.nz>
To: pgsql-sql@postgresql.org
Subject: Re: getting the OS user name
Date: 24 Apr 2012 09:48:02 GMT
Message-ID: <jn5ssi$9qr$1@reversiblemaps.ath.cx> (raw)
References: <4654350.cBryTEqMC6@linux-12>
On 2012-04-23, John Fabiani <johnf@jfcomputer.com> wrote:
> Hi,
> In my app it is possible to login as one name and use a different name to
> login to postgres.
>
> Is it possible to get the actual OS login name using plsql.
not a chance.
RFC1413
man 3 ident
looks like the parameters you need can be found here
http://www.postgresql.org/docs/current/static/functions-info.html
dunno if you can do ident calls from any of the available PLs other
than PLC
RFC1413 can be forged
--
⚂⚃ 100% natural
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jasen@xnet.co.nz
Subject: Re: getting the OS user name
In-Reply-To: <jn5ssi$9qr$1@reversiblemaps.ath.cx>
* 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