Re: Query on User account password change details

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Query on User account password change details
Дата
Msg-id 20210506201043.GA10431@momjian.us
обсуждение исходный текст
Ответ на Query on User account password change details  (Vipin Madhusoodanan <vipin.madhusoodanan@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Vipin Madhusoodanan
Дата:
Сообщение: Query on User account password change details
Следующее
От: Holger Jakobs
Дата:
Сообщение: Re: Query on User account password change details