Issue #9459 has been updated by Matthaus Litteken. Status changed from Merged - Pending Release to Closed Target version changed from 2.7.x to 2.7.7
Released in 2.7.7 ---------------------------------------- Bug #9459: Puppet fails to create user when groups are specified https://projects.puppetlabs.com/issues/9459 Author: Josh Cooper Status: Closed Priority: High Assignee: Cameron Thomas Category: windows Target version: 2.7.7 Affected Puppet version: development Keywords: Branch: https://github.com/puppetlabs/puppet/pull/141 Given the manifest test.pp: <pre> user { "foobar": groups => ["Users"] } </pre> If the user foobar does not yet exist, then running puppet apply test.pp, generates an error because it's trying to connect to ADSI before the foobar user has been created: <pre> Z:\work\puppet>puppet apply --trace test.pp c:/ruby187/lib/ruby/site_ruby/1.8/puppet/util/adsi.rb:15:in `connect' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/util/adsi.rb:64:in `native_user' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/util/adsi.rb:130:in `groups' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/provider/user/windows_adsi.rb:17:in `groups' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/property/list.rb:54:in `send' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/property/list.rb:54:in `retrieve' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/property/list.rb:43:in `should' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:599:in `managed?' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:598:in `each' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:598:in `managed?' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/type/user.rb:63:in `default' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:531:in `set_default' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1792:in `set_parameters' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1791:in `each' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1791:in `set_parameters' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/type.rb:1755:in `initialize' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/resource.rb:285:in `new' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/resource.rb:285:in `to_ral' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:601:in `send' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:601:in `to_catalog' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:579:in `each' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:579:in `to_catalog' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:521:in `to_ral' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:207:in `main' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:135:in `run_command' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:410:in `hook' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:401:in `exit_on_fail' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `run' c:/ruby187/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in `execute' c:/ruby187/bin/puppet:4 ADSI connection error: failed to parse display name of moniker `WinNT://JOSH-NY1PO54A0O/foobar,user' HRESULT error code:0x800708ad The user name could not be found. </pre> If you remove the "groups" parameter from the manifest, then it works fine, at which point you can add the "groups" parameter back (since the user now exists) -- 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.
