# File lib/puppet/provider/nameservice/directoryservice.rb, line 322 322: def self.get_password(guid) 323: password_hash = nil 324: password_hash_file = "#{@@password_hash_dir}/#{guid}" 325: if File.exists?(password_hash_file) and File.file?(password_hash_file) 326: if not File.readable?(password_hash_file) 327: fail("Could not read password hash file at #{password_hash_file} for #{@resource[:name]}") 328: end 329: f = File.new(password_hash_file) 330: password_hash = f.read 331: f.close 332: end 333: password_hash 334: end