Howard Chu wrote:
Michal Ludvig wrote:
More specifically I need to update shadowExpire in posixAccount object
whenever either shadowLastChanged or userPassword attributes are
updated. Is that achievable in some elegant way?
There is no reason to update shadowExpire, since it is merely a count of
number of days, not a specific date.
Not really. It basically *is* a date, just encoded as number of days
since 01-01-1970. Obviously if shadowExpire==13411 I want to prevent
that user from logging in after "Wed Sep 20 23:59:59 2006", i.e.
tomorrow. But if he changes the password today he should have his
shadowExpire updated to say today+2months.