Re: Valid until - Mailing list pgsql-general

From Tom Lane
Subject Re: Valid until
Date
Msg-id 1102603.1715701509@sss.pgh.pa.us
Whole thread Raw
In response to Re: Valid until  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Valid until
List pgsql-general
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 5/14/24 00:57, Rama Krishnan wrote:
>> I recently set a user's password validity to "2024-05-13", but despite 
>> this, the user is still able to connect to the database. Is this a bug, 
>> or is the "valid until" parameter just for identification purposes, 
>> indicating when the password will expire?

>      The VALID UNTIL clause sets a date and time after which the role's 
> password is no longer valid. If this clause is omitted the password will 
> be valid for all time.

The important point there is that the *password* is not usable after
the specified date.  If the user logs in via some non-password-based
authentication method, that's fine (and it's on the infrastructure
of that auth method to enforce whatever restrictions it thinks are
appropriate).

            regards, tom lane



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Valid until
Next
From: Muhammad Imtiaz
Date:
Subject: Re: Valid until