mac
2013-Jul-01 05:48 UTC
[Puppet Users] Password policy for creating users manifest for puppet windows
Hi, I want to implement a password policy such as min_age & max_age users manifests for puppet windows. What will be the correct syntax for the same. Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Josh Cooper
2013-Jul-01 23:14 UTC
Re: [Puppet Users] Password policy for creating users manifest for puppet windows
On Sun, Jun 30, 2013 at 10:48 PM, mac <smilemukul2005@gmail.com> wrote:> Hi, > > I want to implement a password policy such as min_age & max_age users > manifests for puppet windows. > > What will be the correct syntax for the same. > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. > > >Puppet''s built-in user provider on windows does not manage password age, but you can easily set the appropriate values in the registry[1] using the registry module[2]. Josh [1] http://support.microsoft.com/kb/555540 [2] http://forge.puppetlabs.com/puppetlabs/registry -- Josh Cooper Developer, Puppet Labs *Join us at PuppetConf 2013, August 22-23 in San Francisco - * http://bit.ly/pupconf13* **Register now and take advantage of the Early Bird discount - save 25%!* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Rich Siegel
2013-Jul-02 12:45 UTC
Re: [Puppet Users] Password policy for creating users manifest for puppet windows
I probably wouldn''t use registry, since it feels hackish. If it is a domain joined pc I would use group policy and can support fine grain pw policies. No puppet required. If its a workgroup pc or you want to manage it locally instead of gpo: On reference computer------------------------------1. Click Start -> Run, type “secpol.msc”, to open the Security Policy tool. 2. Configure the Password Policy as required. 3. Right click “Security Settings”, and click “Export Policy…” to export the settings to a .inf file. 4. Copy the .inf file to files folder of your module 5. Deploy inf file via file resource or use file function on command. 6. Exec resource the following command to import the policy file: Secedit /configure /db secedit.sdb /cfg <exported.inf file> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.