summaryrefslogtreecommitdiff
path: root/lib/chef/resource/user
Commit message (Collapse)AuthorAgeFilesLines
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-137-7/+7
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove the canonical DSLLamont Granquist2020-03-037-18/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* convert move resources to unified_modelcg/unified-mode3Lamont Granquist2020-02-253-2/+6
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Document the new hidden field in mac_user ships in 15.8Tim Smith2020-02-031-2/+2
| | | | | | Make sure we expose this come docs Signed-off-by: Tim Smith <tsmith@chef.io>
* Account for if the propery is not being set in the resource, and also if it ↵Joseph Chilcote2020-01-251-1/+1
| | | | | | doesn't exist in the user record Signed-off-by: Joseph Chilcote <chilcote@fb.com>
* Adding support for IsHidden user attribute (macOS)Joseph Chilcote2020-01-251-0/+3
| | | | Signed-off-by: Joseph Chilcote <chilcote@fb.com>
* Turn on unified_mode for 35 core resourcesLamont Granquist2019-10-285-0/+10
| | | | | | | | | These are the ones that off of the top of my head it should be perfectly safe to turn on `unifed_mode` with minimal auditing. Most of these are so old that they do not use any sub-resources at all. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* [macos] fix mac_user platform constraintsryan/fix-macos-buildRyan Cragun2019-09-102-2/+2
| | | | Signed-off-by: Ryan Cragun <ryan@chef.io>
* Add introduced fieldRyan Cragun2019-08-271-0/+2
| | | | Signed-off-by: Ryan Cragun <ryan@chef.io>
* Address review feedback round 1Ryan Cragun2019-07-261-19/+31
| | | | | | | | | | | | | | | | | * Fix 'iterations' description * Update 'gid' property, remove coercion, resolve group name and id in provider * Move validation of password value when given salt to resource property coercion * Restructure exception handling around calls * Don't re-map properties onto current_resource after load_current_resource * Execute inline group resources with run_action * Always set the home directory when creating a user * Poll for user creating instead of a hard sleep * Remove old ascii encoding copy pasta Signed-off-by: Ryan Cragun <ryan@chef.io>
* Add mac_user resource that is compatible with macOS >= 10.14Ryan Cragun2019-07-242-1/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a user resource that is compatible with default TCC restrictions that were introduced in macOS 10.14. Changes: * This resource and the corresponding provider have been modified to work with default macOS TCC policies. Direct access to user binary plists are no longer permitted by default, thus we've chosen to use use newer methods of creating, modifying and removing users. * Due to the tooling required by the provider this provider is only suitable for use on macOS >= 10.14. Support for older platforms has been removed. New Features: * Primary group management is now included. * 'admin' is now a boolean property that configures a user to an admin. * 'admin_username' and 'admin_password' are new properties that define the admin user credentials required for toggling SecureToken for an exiting user. The 'admin_username' must correspond to a system admin with SecureToken enabled in order to toggle SecureToken. * 'secure_token' is a boolean property that sets the desired state for SecureToken. SecureToken token is required for FileVault full disk encryption. Signed-off-by: Ryan Cragun <ryan@chef.io>
* fix Layout/AlignArgumentslcg/new-chefstyleLamont Granquist2019-07-022-4/+4
| | | | | | | | | | | | | | this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix a bunch of weirdly mangled require linesLamont Granquist2019-05-086-6/+6
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-086-6/+6
| | | | | | | This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Move the iterations property directly into the dscl_user resourceTim Smith2019-02-191-0/+4
| | | | | | It's not used anywhere else. Let's keep it out of the other resources. Signed-off-by: Tim Smith <tsmith@chef.io>
* Fixed introduced version to 14.6 for newly added properties in ↵Vasu11052018-09-261-1/+1
| | | | | | zypper_package and windows_user resource as it got released in 14.6. Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Added introduced version for full_name property.vasu11052018-09-251-1/+2
| | | | Signed-off-by: vasu1105 <vasundhara.jagdale@msystechnologies.com>
* MSYS-888 Adds full_name property to user resource for Windows.vasu11052018-09-241-0/+3
| | | | Signed-off-by: vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Chef-13: Remove supports API from all user providersLamont Granquist2017-02-286-15/+6
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* move deprecation warnings to superclassLamont Granquist2016-09-151-13/+0
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix typos in deprecation messageLamont Granquist2016-09-151-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* revert supports[:manage_home] behaviorLamont Granquist2016-09-141-7/+10
| | | | | | | even though i violently disagree that this is correct behavior and we're just going to break everyone in one massive go when we hit Chef 13. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* set manage_home default back to falseLamont Granquist2016-08-231-2/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* user provider manage_home behavior and refactorLamont Granquist2016-08-196-0/+207
split out the user provider into 1:1 resources. fix the behavior of the linux user provider to implement manage_home behavior correctly. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>