Issue #11717 has been reported by Paul Tinsley. ---------------------------------------- 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: Unreviewed Priority: Normal Assignee: Category: windows Target version: Affected Puppet version: 2.7.9 Keywords: Branch: 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: $ 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] 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.
