Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 42F05145EA44 for ; Tue, 24 Apr 2012 07:01:59 -0300 (ADT) Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SMcZG-0002oM-EM for pgsql-sql@postgresql.org; Tue, 24 Apr 2012 10:01:58 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SMcZ0-0001LU-KF for pgsql-sql@postgresql.org; Tue, 24 Apr 2012 12:01:38 +0200 Received: from ip-118-90-82-219.xdsl.xnet.co.nz ([118.90.82.219]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Apr 2012 12:01:38 +0200 Received: from jasen by ip-118-90-82-219.xdsl.xnet.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Apr 2012 12:01:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: Jasen Betts Subject: Re: getting the OS user name Date: 24 Apr 2012 09:48:02 GMT Organization: Dis (not Dat) Organisation Lines: 25 Message-ID: References: <4654350.cBryTEqMC6@linux-12> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ip-118-90-82-219.xdsl.xnet.co.nz X-Face: ?)Aw4rXwN5u0~$nqKj`xPz>xHCwgi^q+^?Ri*+R(&uv2=E1Q0Zk(>h!~o2ID@6{uf8s; a +M[5[U[QT7xFN%^gR"=tuJw%TXXR'Fp~W; (T"1(739R%m0Yyyv*gkGoPA.$b,D.w:z+<'"=-lVT?6 {T?=R^:W5g|E2#EhjKCa+nt":4b}dU7GYB*HBxn&Td$@f%.kl^:7X8rQWd[NTc"P"u6nkisze/Q; 8 "9Z{peQF,w)7UjV$c|RO/mQW/NMgWfr5*$-Z%u46"/00mx-,\R'fLPe.)^ User-Agent: slrn/pre1.0.0-18 (Linux) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/47 X-Sequence-Number: 36524 On 2012-04-23, John Fabiani 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