Re: Trigger when user logs in - Mailing list pgsql-general

From Michael Nolan
Subject Re: Trigger when user logs in
Date
Msg-id CAOzAquLkEpNcRitS5ZtBS1G0chsCUT+QYB9j23tsxFm2VLaqbg@mail.gmail.com
Whole thread Raw
In response to Re: Trigger when user logs in  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
List pgsql-general



On Sun, Apr 14, 2019 at 4:06 AM Peter J. Holzer <hjp-pgsql@hjp.at> wrote:

If you want to prevent a user from logging in (which is functionally
equivalent but a bit stronger than "instantly kick off"), then this is
definitely something that could and should be implemented via PAM (I'm
not sure what information is passed to PAM, so you might get the IP
address but not the application name (the latter can't be trusted
anyway), for example).

I think the only information you can reliably count on is the user name.  IP addresses may not be the true IP address of the user if there's some kind of relay or cache in place. 

Having been through the PCI compliance wringer a few times, I wish the OP luck. 
--
Mike Nolan

pgsql-general by date:

Previous
From: Alastair McKinley
Date:
Subject: Re: Planner can't seem to use partial function indexes with parameterfrom join
Next
From: Laura Smith
Date:
Subject: Where to find postgresql libs in the APT repo ?