summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJacob Helwig <jacob@puppetlabs.com>2011-07-21 16:37:18 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-07-21 16:37:18 -0700
commit5e2a3d200b74eef9549e3e2a5bdbe2a23ae7fac1 (patch)
tree5f662d57bcb89f484f5404b59726ba1f0dca8f0c /lib
parent691554ce752b631ae09bb87762b7bb9fcbe68e68 (diff)
parenta87ef54385cbf325d6b085200606562b0d4d7876 (diff)
downloadpuppet-5e2a3d200b74eef9549e3e2a5bdbe2a23ae7fac1.tar.gz
puppet-5e2a3d200b74eef9549e3e2a5bdbe2a23ae7fac1.tar.xz
puppet-5e2a3d200b74eef9549e3e2a5bdbe2a23ae7fac1.zip
Merge branch '2.6.x' into 2.7.x
* 2.6.x: (#6857) Password disclosure when changing a user's password
Diffstat (limited to 'lib')
-rwxr-xr-xlib/puppet/type/user.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/puppet/type/user.rb b/lib/puppet/type/user.rb
index 572d5796d..c64bf69e8 100755
--- a/lib/puppet/type/user.rb
+++ b/lib/puppet/type/user.rb
@@ -168,6 +168,14 @@ module Puppet
return "changed password"
end
end
+
+ def is_to_s( currentvalue )
+ return '[old password hash redacted]'
+ end
+ def should_to_s( newvalue )
+ return '[new password hash redacted]'
+ end
+
end
newproperty(:password_min_age, :required_features => :manages_password_age) do