diff options
author | Nigel Kersten <nigelk@google.com> | 2008-11-26 13:59:55 -0800 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-11-28 09:42:08 +1100 |
commit | 3a395095d7b913661484bc5caeeb90cb34cd5b3f (patch) | |
tree | b8cc8777ce9a1dbc89f63c3d06a87ce3bd55af4c /lib/puppet | |
parent | a45c6b1b9f9675aa76e96fa053742af621887591 (diff) | |
download | puppet-3a395095d7b913661484bc5caeeb90cb34cd5b3f.tar.gz puppet-3a395095d7b913661484bc5caeeb90cb34cd5b3f.tar.xz puppet-3a395095d7b913661484bc5caeeb90cb34cd5b3f.zip |
make sure only types that have passwords search for the password
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/provider/nameservice/directoryservice.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/provider/nameservice/directoryservice.rb b/lib/puppet/provider/nameservice/directoryservice.rb index 308f5192e..4e21d4169 100644 --- a/lib/puppet/provider/nameservice/directoryservice.rb +++ b/lib/puppet/provider/nameservice/directoryservice.rb @@ -169,7 +169,9 @@ class DirectoryService < Puppet::Provider::NameService # stored in the user record. It is stored at a path that involves the # UUID of the user record for non-Mobile local acccounts. # Mobile Accounts are out of scope for this provider for now - attribute_hash[:password] = self.get_password(attribute_hash[:guid]) + if @resource_type.validproperties.include?(:password) + attribute_hash[:password] = self.get_password(attribute_hash[:guid]) + end return attribute_hash end |