Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lfDtj-0008Q0-Hy for pgsql-admin@arkaria.postgresql.org; Sat, 08 May 2021 03:45:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lfDth-0006XI-My for pgsql-admin@arkaria.postgresql.org; Sat, 08 May 2021 03:44:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lfDth-0006XA-9S for pgsql-admin@lists.postgresql.org; Sat, 08 May 2021 03:44:57 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lfDte-0004Kt-Fl for pgsql-admin@lists.postgresql.org; Sat, 08 May 2021 03:44:56 +0000 Received: by mail-ed1-x530.google.com with SMTP id v5so1404493edc.8 for ; Fri, 07 May 2021 20:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=pSeEF+7i5taf3+UZfKBBmjFvQcUNItjPuINKZQyXZuQ=; b=QmU1GY0rLzY0EJ9PcmH1M6xu/9RpOS7lOyTOm3a82g/wg2mEi7RySSBSi/n8c/zdfE VZj7dTG6621Jb3lmWSmaoTaZKbVeJpGW3Ypuy0D5zHj0Te4A+B8/WKysXoyHEZNPjIL9 1KJrxAJy8B6Kk9QIog0GhhpjBtFyqUlzsS4wSsjDoLTonlTUb7SgNxhQFR9+/vjuudEv pbuYfD7uKW4okhbm0wQVeuK5HhPjfMoEJjeWGGPTFSvyYhf3a02CufQqEkKoFHlYYJyN cfNGAEN9spwZV6eLvYE/+KmzhymP3PcmOdOssNM0P35UE7ar6J12m54bclIJWW1hD1fd V9rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=pSeEF+7i5taf3+UZfKBBmjFvQcUNItjPuINKZQyXZuQ=; b=hWidxitsSg/ODzOJ8qgYVNELgXV6kbxufkW0zTntVSmcl2x3NLlyRwwcotrCWiLoO5 +gSOB/MWK4XUGn/vZ3i9ThSzpv6TI/5CUU6xbogLLo+CwWx7lqYp6Yo/R60f/0TUB76y ZJNno5D9aYS2hLqwX5LSVvLOcOP/zLM8kWjf5jDpThMbNkSVi9ykQKGG/VLxB+a3WWIM 34mepedErBUcu1odiJkd5rXvitVlU06jmxiM18Bt9VNuiESEjPyTKIQrFVtpuitueVoO KPLDKMTWp2g8G0nWXwZF5EMZmVlQqfX10cnyBpw6J424IGDAHvgBjLoUrIxvf5duw5XV 0p7w== X-Gm-Message-State: AOAM533dmQLyAVc+5RAmUjFqzGO+sUR0PaouYvKqi2MouGHR3AVpw/Ha sINp9/FyyvslxDdwOMlou8JEeQ== X-Google-Smtp-Source: ABdhPJxnrmGeayqhoFhdUf+OzLPKQ/1k9EKOUhWqljH/Kh4aHeLDvtJOoDB1qUWzE9AI15c5yUEmPg== X-Received: by 2002:a05:6402:2788:: with SMTP id b8mr568824ede.140.1620445493316; Fri, 07 May 2021 20:44:53 -0700 (PDT) Received: from localhost.localdomain (62-46-254-34.adsl.highway.telekom.at. [62.46.254.34]) by smtp.gmail.com with ESMTPSA id v23sm5514654eda.8.2021.05.07.20.44.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 May 2021 20:44:53 -0700 (PDT) Message-ID: <6bc4ea2d4055691bc3e309aa1488721da9c8c2c0.camel@cybertec.at> Subject: Re: Query on User account password change details From: Laurenz Albe To: Vipin Madhusoodanan , Vijaykumar Jain , pgsql-admin@lists.postgresql.org Cc: Holger Jakobs Date: Sat, 08 May 2021 05:44:52 +0200 In-Reply-To: References: <90B6B3A1-BB95-4D69-99EF-D86C0A859431@jakobs.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2021-05-07 at 15:47 -0500, Vipin Madhusoodanan wrote: > Can someone help with suggestions or ideas for a workaround to achieve this? > > > > > > 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. You cannot do that unless you want to modify PostgreSQL. For requirements like this, the recommendation is *not* to use passwords in the database for authentication. Use one of the other authentication methods that uses an external authority. Identity management systems specialize in that kind of thing, and you may be able to get that information from there. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com