Re: Using DSN Connection and knowing windows username

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Łukasz Jarych <jaryszek(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Using DSN Connection and knowing windows username
Date: 2018-06-20 13:34:37
Message-ID: CAKFQuwZFH60pwUP-YseoFx6W=yWtr8sB27mmaLo+mygmeq6+qQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday, June 20, 2018, Łukasz Jarych <jaryszek(at)gmail(dot)com> wrote:
>
> How to know in postgresql which specific windows user is using database?
>

You cannot. All the server knows is the specific user credentials it is
authenticating.

That said you can authenticate those credentials in such a way so that
knowing the signed on user you would also know who they are in any
environment that uses the same authentication source - and if that source
supplies their Windows identity you are golden. The specific setups
involved here are outside my experience, though.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-06-20 13:55:43 Re: Load data from a csv file without using COPY
Previous Message Andreas Kretschmer 2018-06-20 13:08:09 Re: Suggestion about logging only every n-th statement