HomePhorge

(#11318) Add password management on FreeBSD
884381f7d6bdUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#11318) Add password management on FreeBSD

This adds the manages_passwords feature to the pw user provider. It is based
on the patch by Andrew Hust that was integrated into FreeBSD puppet port. It
adds tests covering the create, delete and modify processes of the provider.

This integrates a fix for #7500 that was introduced by the original patch.
The existing code takes the first character of each property and uses it as a
flag. However, with pw, the -p flag is for setting the password expiration.
The result is that the password isn't set at create time and that the password
is set to expire. The next run of puppet correctly sets the password but the
expiry is still set. The new code avoids using -p for passwords, and also sets
the password correctly when an account is created.

Reviewed-by: Patrick Carlisle <patrick@puppetlabs.com>

Details

Provenance
Tim Bishop <tim@bishnet.net>Authored on
Patrick Carlisle <patrick@puppetlabs.com>Committed on Jan 17 2012, 9:09 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU9348fe206289: Merge pull request #336 from joshcooper/maint/2.7.x/cert-ttl-build-errors
Branches
Unknown
Tags
Unknown

Event Timeline

Patrick Carlisle <patrick@puppetlabs.com> committed rPU884381f7d6bd: (#11318) Add password management on FreeBSD (authored by Tim Bishop <tim@bishnet.net>).Jan 17 2012, 9:09 PM