| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
the dscl user provider uses mixin/shell_out instead and the specs don't seem to use mixlib/shellout or actually need the require.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
| |
converts all usage to just shell_out() from the numerous helper
utilities that we've had previously.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
|
|
|
| |
According to `man shadow` on Solaris 10 and 11, an account is only
locked if the first four characters in the password field are
`*LK*`. The same is true for SmartOS (the OS for which the initial code
was contributed).
Signed-off-by: Tom Duffield <tom@chef.io>
|
|
|
|
|
|
|
|
|
| |
On Solaris, the 'shadow' database does not exist within `getent`, so the
checking for the username there won't return accurate results. As the
Solaris provider assumes user management via /etc/shadow, we can very
easily parse the contents of the file directly.
Signed-off-by: Tom Duffield <tom@chef.io>
|
|
|
|
| |
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
|
|
|
|
| |
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
|
|
|
|
| |
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
|
|
|
|
| |
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\
| |
| | |
Refactor test to remove duplicate definition of ShellCmdResult
|
| | |
|
| |
| |
| | |
Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
|
| |
| |
| | |
Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
|
|/
|
| |
Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
|
|
|
|
|
|
|
| |
This is an entirely mechanically generated (chefstyle -a) change, to go
along with chef/chefstyle#5 . We should pick something and use it
consistently, and my opinion is that double quotes are the appropriate
thing.
|
| |
|
| |
|
|
|
|
| |
mechanically generated patch using transpec 2.3.7 gem
|
|
|
|
| |
fix deprecation warnings
|
|
|
|
|
|
|
|
| |
- Update useradd shared examples to rely on let block defined provider
object so custom method stubs can be added.
- Stub methods that manipulate shadow file on the solaris provider in
the shared examples.
- Remove unnecessary test setup from solaris provider specific tests.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fixes CHEF-4204
- Useradd provider commands converted from single string to argv array.
This bypasses use of bin/sh command interpretation, so there is no
need to escape shell-significant characters (e.g., quotes, etc.).
- Un-pending-ize useradd functional tests for arguments to useradd with
single quote characters.
- Update useradd unit tests to expect command as argv splatted arrays.
- Extract useradd unit tests to a shared example group.
- deduplicate test code between solaris and useradd unit tests using
shared example group.
|
|
|
|
|
|
|
| |
- Convert all run_command and popen4 calls to shell_out!
- Update useradd tests
- User::Solaris subclasses from Useradd, so update those tests, too.
- Functional tests pass unmodified
|
|
|