347: def password=(passphrase)
348: exec_arg_vector = self.class.get_exec_preamble("-read", @resource.name)
349: exec_arg_vector << @@ns_to_ds_attribute_map[:guid]
350: begin
351: guid_output = execute(exec_arg_vector)
352: guid_plist = Plist.parse_xml(guid_output)
353:
354:
355:
356: guid = guid_plist["dsAttrTypeStandard:#{@@ns_to_ds_attribute_map[:guid]}"][0]
357: self.class.set_password(@resource.name, guid, passphrase)
358: rescue Puppet::ExecutionFailure => detail
359: fail("Could not set #{param} on #{@resource.class.name}[#{@resource.name}]: #{detail}")
360: end
361: end