<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/ruby-gems/chef.git/lib/chef/provider/user, branch https_shell</title>
<subtitle>github.com: opscode/chef.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/'/>
<entry>
<title>Add a default GID for user creation on MacOS (#5393)</title>
<updated>2016-11-02T10:01:44+00:00</updated>
<author>
<name>cgerke</name>
<email>cgerke@users.noreply.github.com</email>
</author>
<published>2016-11-02T10:01:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=c1caccb4f10a86b8d59a7ea4a8c0bf22d0c1ba83'/>
<id>c1caccb4f10a86b8d59a7ea4a8c0bf22d0c1ba83</id>
<content type='text'>
* Avoid ArgumentError

new_resource.gid.to_s will be empty if a recipe calls the user resource without gid and changes the home property. Will result in an exception and if chef is run by root, the home dir will end up being owned by root from the mv.

* Avoid chown issues when using manage_home and not specifying a gid

Using a sensible CONSTANT for gid when new_resource.gid.nil?

Signed-off-by: Chris Gerke &lt;chris.gerke@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Avoid ArgumentError

new_resource.gid.to_s will be empty if a recipe calls the user resource without gid and changes the home property. Will result in an exception and if chef is run by root, the home dir will end up being owned by root from the mv.

* Avoid chown issues when using manage_home and not specifying a gid

Using a sensible CONSTANT for gid when new_resource.gid.nil?

Signed-off-by: Chris Gerke &lt;chris.gerke@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Solaris users are locked only if *LK*</title>
<updated>2016-10-31T17:53:26+00:00</updated>
<author>
<name>Tom Duffield</name>
<email>tom@chef.io</email>
</author>
<published>2016-10-31T17:30:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=a47b1840e6c7b356b79bd535033ba4cf50231bc3'/>
<id>a47b1840e6c7b356b79bd535033ba4cf50231bc3</id>
<content type='text'>
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 &lt;tom@chef.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;tom@chef.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Properly check lock status of user on solaris2</title>
<updated>2016-10-31T17:40:45+00:00</updated>
<author>
<name>Tom Duffield</name>
<email>tom@chef.io</email>
</author>
<published>2016-10-24T20:34:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=1738bd548fe1227017f3fbd093fcf13f5c194bad'/>
<id>1738bd548fe1227017f3fbd093fcf13f5c194bad</id>
<content type='text'>
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 &lt;tom@chef.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;tom@chef.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix manage_home provider inconsistency</title>
<updated>2016-10-06T17:43:50+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2016-10-06T17:43:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=cbc56072a96efae05df8c954762c767075bfe3b4'/>
<id>cbc56072a96efae05df8c954762c767075bfe3b4</id>
<content type='text'>
on freebsd and mac we're now telling people to use `manage_home` instead
of `supports[:manage_home]` but it doesn't actually work.  fixes that so
that it works now.

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
on freebsd and mac we're now telling people to use `manage_home` instead
of `supports[:manage_home]` but it doesn't actually work.  fixes that so
that it works now.

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix solaris handling for -m/-M behavior. Fixes #5403.</title>
<updated>2016-10-04T23:16:06+00:00</updated>
<author>
<name>Noah Kantrowitz</name>
<email>noah@coderanger.net</email>
</author>
<published>2016-10-04T23:16:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=eb87f52643cd29a2ac528a0c0f3322a0b06f75cc'/>
<id>eb87f52643cd29a2ac528a0c0f3322a0b06f75cc</id>
<content type='text'>
Signed-off-by: Noah Kantrowitz &lt;noah@coderanger.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Noah Kantrowitz &lt;noah@coderanger.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fully override the method because we are planning to phase out the shared base class anyway so the slight code duplication is fine.</title>
<updated>2016-09-21T23:49:00+00:00</updated>
<author>
<name>Noah Kantrowitz</name>
<email>noah@coderanger.net</email>
</author>
<published>2016-09-21T23:49:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=f57fc526f3c779d530170517dd2f08a50554b22d'/>
<id>f57fc526f3c779d530170517dd2f08a50554b22d</id>
<content type='text'>
Signed-off-by: Noah Kantrowitz &lt;noah@coderanger.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Noah Kantrowitz &lt;noah@coderanger.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Solaris doesn't support -r for users or group.</title>
<updated>2016-09-20T01:53:43+00:00</updated>
<author>
<name>Noah Kantrowitz</name>
<email>noah@coderanger.net</email>
</author>
<published>2016-09-20T01:53:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=9f4e52f5c8067904c275cdf2f9fb0ec290fc6470'/>
<id>9f4e52f5c8067904c275cdf2f9fb0ec290fc6470</id>
<content type='text'>
Signed-off-by: Noah Kantrowitz &lt;noah@coderanger.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Noah Kantrowitz &lt;noah@coderanger.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>revert supports[:manage_home] behavior</title>
<updated>2016-09-14T22:44:43+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2016-09-14T22:44:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=3eb0d2292bdb54709b1f88bc9335b24d2269f0b8'/>
<id>3eb0d2292bdb54709b1f88bc9335b24d2269f0b8</id>
<content type='text'>
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 &lt;lamont@scriptkiddie.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;lamont@scriptkiddie.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rewrite linu_user provider check_lock</title>
<updated>2016-08-24T23:12:52+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2016-08-24T23:12:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=c0d8144530e1319cd2a9274a17d9de4503ac6380'/>
<id>c0d8144530e1319cd2a9274a17d9de4503ac6380</id>
<content type='text'>
this removes the kinda brittle kinda insane parsing of the installed
rpm version.  now we're just less strict about the exit 1 code and
fail on the output not being what is expected.

this also likely fixes a bug in rhel in why-run mode where shell_out!
would have failed on the user-not-found and raised an exception that
would have ended the run.  the code before certainly looks buggy.

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this removes the kinda brittle kinda insane parsing of the installed
rpm version.  now we're just less strict about the exit 1 code and
fail on the output not being what is expected.

this also likely fixes a bug in rhel in why-run mode where shell_out!
would have failed on the user-not-found and raised an exception that
would have ended the run.  the code before certainly looks buggy.

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sort out the -m / -M mess a bit better</title>
<updated>2016-08-24T01:50:58+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2016-08-24T01:50:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=d0240480ea5f52452853633554565b6229990298'/>
<id>d0240480ea5f52452853633554565b6229990298</id>
<content type='text'>
-M is not valid for usermod

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
-M is not valid for usermod

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
