From 3a395095d7b913661484bc5caeeb90cb34cd5b3f Mon Sep 17 00:00:00 2001 From: Nigel Kersten Date: Wed, 26 Nov 2008 13:59:55 -0800 Subject: make sure only types that have passwords search for the password --- lib/puppet/provider/nameservice/directoryservice.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/puppet') 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 -- cgit