Issue #11717 has been updated by Josh Cooper. Status changed from In Topic Branch Pending Review to Merged - Pending Release
This was merged in commit <https://github.com/puppetlabs/puppet/commit/9ba85db04b1712e620a4acb410d23d52c109d4de>. <pre> (#11717) Set password before creating user on Windows Previously, puppet could not create a user with no password when a local password complexity policy was set. This commit sets the password on the user prior to creating it, and updates the spec tests accordingly. </pre> ---------------------------------------- Bug #11717: Windows ADSI user provider won't create users if a password policy is in place https://projects.puppetlabs.com/issues/11717 Author: Paul Tinsley Status: Merged - Pending Release Priority: Normal Assignee: Josh Cooper Category: windows Target version: 2.7.x Affected Puppet version: 2.7.9 Keywords: Branch: https://github.com/puppetlabs/puppet/pull/304 The creation of a user in puppet currently creates the account then sets the password, that won't meet the complexity requirement since the password is blank. It's the same behavior you would receive if you went into computer manager and added one by hand with no password. As the provider is currently written this requires a one line code change: <pre> $ diff /cygdrive/c/Users/puppet/Desktop/puppetlabs-puppet-26093a8/lib/puppet/provider/user/windows_adsi.rb puppet/provider/user/windows_adsi.rb 25c25,28 < @user.commit --- > #if a windows complexity policy is set you have to set the password when > the > # account is created, a call to .password is all that is needed it does > it's > # own commit. > @user.password = @resource[:password] </pre> I can't certify this will work in every environment but I have had luck in windows 7 and windows 2003 r2. -- 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.
