24710648 puppet resource LDAP lookup fails when querying users
authorPatrick Einheber <patrick.einheber@oracle.com>
Wed, 12 Oct 2016 08:38:46 -0700
changeset 7093 a50590d00730
parent 7092 75706ef0642b
child 7094 61352b4e5af5
24710648 puppet resource LDAP lookup fails when querying users
components/ruby/puppet/patches/puppet-15-shadow-bug.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ruby/puppet/patches/puppet-15-shadow-bug.patch	Wed Oct 12 08:38:46 2016 -0700
@@ -0,0 +1,14 @@
+Fixes a bug introduced by PUP-229.
+Modification notice injected by puppet-09-role-shell.patch.
+This fix has already been integrated into the Puppet master branch.
+
+--- puppet-3.8.6/lib/puppet/provider/user/user_role_add.rb.orig	2016-10-07 10:04:30.993459833 +0000
++++ puppet-3.8.6/lib/puppet/provider/user/user_role_add.rb	2016-10-07 10:05:07.479333101 +0000
+@@ -191,6 +191,7 @@
+   end
+ 
+   def password_min_age
++    return :absent unless shadow_entry
+     shadow_entry[3].empty? ? -1 : shadow_entry[3]
+   end
+