Jira (PUP-7761) New users with null passwords not created correctly

1 view
Skip to first unread message

Sean Millichamp (JIRA)

unread,
Jul 7, 2017, 8:51:06 AM7/7/17
to puppe...@googlegroups.com
Sean Millichamp created an issue
 
Puppet / Bug PUP-7761
New users with null passwords not created correctly
Issue Type: Bug Bug
Affects Versions: PUP 4.10.4
Assignee: Unassigned
Components: Types and Providers
Created: 2017/07/07 5:50 AM
Environment:

Platforms using the useradd and libuser providers.

Priority: Minor Minor
Reporter: Sean Millichamp

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Moses Mendoza (JIRA)

unread,
Jul 7, 2017, 12:22:02 PM7/7/17
to puppe...@googlegroups.com

Sean Millichamp (JIRA)

unread,
Jul 7, 2017, 1:57:02 PM7/7/17
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Jun 5, 2018, 6:01:03 PM6/5/18
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Team: Platform Core OS
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (Jira)

unread,
Jun 11, 2021, 7:47:01 PM6/11/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-7761
 
Re: New users with null passwords not created correctly

The PR for this was closed and we're unlikely to work on this anytime soon, so I'm going to close this. Please reopen if you'd like to submit a new PR to confine the change to an empty password

This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages