Issue #3046 has been updated by Matt Robinson.

Nick's update is as follows:

I have a branch for this at

http://github.com/nicklewis/puppet/tree/feature/next/3046

It has a start of support for min_age and max_age properties and an 
ages_passwords feature (names definitely could be better), but I was having a 
lot of trouble determining which providers needed to support it. Through 
experimentation and temporarily hacking away some of the bugs, I decided that 
it needs to only be supported by those providers which have the 
manages_passwords feature. What I learned is that providers do not inherit 
options or features from their parents. Thus, for example, the ps provider need 
not have ages_passwords, because it doesn't have manages_passwords even though 
its parent useradd does. Also I believe that even though directoryservice 
manages_passwords, there is no way to set min_age or max_age on OS X, and thus 
that provider needn't support it either.

The tricky part of this is that min_age and max_age are set with a different 
program than user information is, which is something the user provider isn't 
really inclined toward. What I have seems to work for the useradd and 
user_role_add providers, but I didn't get anything for LDAP yet, because I 
couldn't find how to do it in LDAP (it may not be possible). Also, I hadn't 
done anything about user expiration yet, although that should be much, much 
simpler. In any case, hopefully my code will be at least a good start for you. 
If you have any questions about it, email me.
----------------------------------------
Feature #3046: Support for changing of password aging and expiration values in 
the user type.
http://projects.puppetlabs.com/issues/3046

Author: Trevor Vaughan
Status: Accepted
Priority: High
Assignee: Matt Robinson
Category: user
Target version: Statler
Affected version: 0.25.3
Keywords: 
Branch: 


Shadow::Passwd appears to support all values present in the standard passwd 
file on *NIX systems.

It would be ideal to support setting all of these values in the user type, 
particularly on systems that set these values for accounts by default.


-- 
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