Re: How to set an expiration date for a WHOLE user account

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to set an expiration date for a WHOLE user account
Date: 2005-06-15 05:08:58
Message-ID: 28324.1118812138@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu> writes:
> "Egyd Csaba" <csegyud(at)vnet(dot)hu> writes
>> I know the VALID UNTIL clause of CREATE USER command, but it is about the
>> password only.
>> I think something similar but regarding the whole user account.

> It is not about password only. Once current date is beyond the valid date
> you set, the user can never get authorized ok anymore.

He's right, you're not: that check is only applied in the
password-based authorization path.

This has always seemed a bit bogus to me too --- would not object to
a well-thought-out patch to change it.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Neil Conway 2005-06-15 05:26:56 Re: Autovacuum in the backend
Previous Message Qingqing Zhou 2005-06-15 04:51:03 Re: How to set an expiration date for a WHOLE user account