Affects Version/s: PUP 4.4.2
Fix Version/s: None
Latest version of puppetserver running on Ubuntu 14.04 LTS with PuppetDB in monolithic install
Puppet agent on Mac OS X Yosemite 10.10.5 installed from puppet-agent-1.4.2-1-osx10.10.dmg
On the Mac using System Preferences Users & Groups, created a new Administrative user named testadmin
Then ran $ sudo -i puppet resource user testadmin and got the following output
This was entered into site.pp for the particular Mac node.
At this point, using System Preferences Users & Groups, deleted the user testadmin while preserving the home directory /Users/testadmin
Then on the Mac ran $ sudo -i puppet agent --test --debug --trace > puppetrun.txt 2>&1
The user testadmin was only incompletely restored. The group name com.apple.sharepoint.group.2 cause an error that also prevented password, salt, and iterations from being reset correctly. If I remove the group name com.apple.sharepoint.group.2 from the manifest site.pp, the user testadmin restores correctly with the correct password.
The file puppetrun.txt is attached.
Also note, the patches to the files plist.rb and directoryservice.rb from ticket
PUP-6159 were taken from github and applied to the Mac node, which is why password, salt, and iterations restore correctly. Otherwise, the test of deleting a Mac user and restoring its groups would have been confounded by that known issue.