Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJbor-0001kF-DM for pgsql-general@arkaria.postgresql.org; Mon, 05 Nov 2018 10:09:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gJbop-0007Hs-1y for pgsql-general@arkaria.postgresql.org; Mon, 05 Nov 2018 10:09:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJboo-0007Hl-M5 for pgsql-general@lists.postgresql.org; Mon, 05 Nov 2018 10:09:14 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gJboh-00061u-Lb for pgsql-general@postgresql.org; Mon, 05 Nov 2018 10:09:13 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 8D659101AAEB3 for ; Mon, 5 Nov 2018 03:09:06 -0700 (MST) Date: Mon, 5 Nov 2018 03:09:06 -0700 (MST) From: pavan95 To: pgsql-general@postgresql.org Message-ID: <1541412546527-0.post@n3.nabble.com> Subject: Re: Password management in PostgreSQL MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello Community, I wanted to know if password can be managed by the respective users at the time of their login, after their password has been expired? Consider the following case: *postgres=# create user pavan with login password 'password' valid until 'November 5 16:30:00 2018';* CREATE ROLE \q />psql -d postgres -U pavan Password for user pavan:XXXXXXXX postgres=> select current_timestamp; now ------------------------------- * 2018-11-05 15:31:11.394+05:30* \q *Now at : 2018-11-05 16:31:11.394+05:30* />psql -d postgres -U pavan Password for user pavan: XXXXXXXX *psql: FATAL: password authentication failed for user "pavan"* Now due to that "VALID UNTIL" option password got expired at 16:30 Hrs. Now how can I ask user "pavan" to change his password at the time of login without administrator intervening into it?? *I have checked with Oracle team, it provides this facility in-built. I hope postgres is not provided with this type of password management mechanism. If so, can we think of a alternative wherein the corresponding user can be enable to change his/her password??* Looking forward to hear your valuable suggestions. Thanks in advance. Regards, Pavan -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html