Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7761

New users with null passwords not created correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: PUP 4.10.4
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
    • Environment:

      Platforms using the useradd and libuser providers.

    • Template:
    • Acceptance Criteria:
      Hide

      User creation should set all desired parameters to the intended values in a single Puppet run.

      Show
      User creation should set all desired parameters to the intended values in a single Puppet run.
    • Team:
      Night's Watch
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      When using Puppet in a Beaker acceptance test to configure a user with a null password (in order to later test to ensure that null passwords would not be permitted to authenticate) I discovered a bug in Puppet when creating users with null passwords.

      Given a manifest like:

      user { 'testuser': password => '' }
      

      It requires two Puppet runs to obtain the desired state.

      This is due to https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/user/useradd.rb#L164 where properties with empty strings are not included.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            seanmil Sean Millichamp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support