Issue #11675 has been updated by Stefan Schulte.

I noticed that the aix and pw provider do also implement expiry. I'd like to 
know what value should be used to *delete* the expiry. (Deleting the expire 
date seems to be only possible on AIX because the aix provider accepts the 
pseudo date `expire => 0000-00-00`)

On Solaris `usermod -e ' '` is supposed to erase the expiry date [1]. On Linux 
most man pages do not mention the removal of the expire date  at all [2]. On my 
recent machine `man 1 usermod` states:
<pre>
An *empty* EXPIRE_DATE argument will disable the expiration of the account.
</pre>

The `aix` and `pw` providers seem to use `0` to represent no expiry (while this 
is a possible is-value it is not a valid should-value). The `aix` provider 
seems to translate a should value of `0000-00-00` to `0` to delete the expiry. 
If using another provider `0000-00-00` will not magically be transformed into 
something appropiate.

I think the user should not have to bother about the different representations 
of "no expire date" and should specify `expiry => absent` in the manifest to 
make sure the user does not expire. The provider's task is to translate that 
into the corresponding value.

[1] http://www.bga.org/~lessem/psyc5112/usail/man/solaris/usermod.1.html
[2] http://linux.die.net/man/8/usermod
----------------------------------------
Bug #11675: user expiry option fills up the logs
https://projects.puppetlabs.com/issues/11675#change-73827

Author: Bill Tong
Status: Accepted
Priority: Normal
Assignee: Stefan Schulte
Category: provider
Target version: 3.0.x
Affected Puppet version: 2.7.9
Keywords: 
Branch: 


puppet should not change the expiry for a user unless the requested expiry 
differs from the current expiry.

user { "root": uid => 0, ensure => "present", "expiry" => "2015-01-01", }

will *always* log every time puppet runs.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to