Re: Query on User account password change details - Mailing list pgsql-admin

From Bruce Momjian
Subject Re: Query on User account password change details
Date
Msg-id 20210506201043.GA10431@momjian.us
Whole thread Raw
In response to Query on User account password change details  (Vipin Madhusoodanan <vipin.madhusoodanan@gmail.com>)
List pgsql-admin
On Thu, May  6, 2021 at 02:52:00PM -0500, Vipin Madhusoodanan wrote:
> Hi Team,
> 
> Please advise on the possibilities to retrieve “last password change date”  for
> a PostgreSQL user account. We have an audit requirement to identify the
> password change details for local PostgreSQL user accounts. We are able to
> track AD users using AD Group Policy, but unable to fetch these details for
> local user accounts. Tried to explore pg_users and pg_shadow catalog views, but
> this information was not available. 

Yep, it's not available.  If you are authenticating Postgres using AD,
you don't really change the password in Postgres, right?  You can just
check the AD date.  I don't think triggers work on system tables, so I
don't think that is an option.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.




pgsql-admin by date:

Previous
From: Vipin Madhusoodanan
Date:
Subject: Query on User account password change details
Next
From: Holger Jakobs
Date:
Subject: Re: Query on User account password change details