summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJacob Helwig <jacob@puppetlabs.com>2011-07-21 16:27:28 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-07-21 16:27:28 -0700
commita87ef54385cbf325d6b085200606562b0d4d7876 (patch)
tree9f6bc485d5d873df5c05de51e72e6a4d3f35ee0c /lib
parent790e947e5581fc51e7002c81c3848fb7048bb6ac (diff)
parent111a4b546dd1bcaab182d5c8ad694404c2c2f91c (diff)
downloadpuppet-a87ef54385cbf325d6b085200606562b0d4d7876.tar.gz
puppet-a87ef54385cbf325d6b085200606562b0d4d7876.tar.xz
puppet-a87ef54385cbf325d6b085200606562b0d4d7876.zip
Merge remote-tracking branch 'barn/tickets/2.6.x/6857-password-disclosure-when-changing-a-users-password' into 2.6.x
* barn/tickets/2.6.x/6857-password-disclosure-when-changing-a-users-password: (#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 f74e4266f..8d04fdc30 100755
--- a/lib/puppet/type/user.rb
+++ b/lib/puppet/type/user.rb
@@ -165,6 +165,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