Hi all,
I've installed Puppet Enterprise 2.5 on Ubuntu 10.04.4 ("minimal" version on our new hosting provider, previous on amazon ec2 all works fine). So couldn't login to puppet dashboard - internal server error. I found problem in rubycas-server. It fails when try to hash password:
(/opt/puppet/share/rubycas-server/lib/casserver/authenticators/sql_encrypted.rb)
def validate(credentials)
....
encrypt_function = @options[:encrypt_function] || 'user.encrypted_password == Digest::SHA256.hexdigest("#{user.encryption_salt}::#{@password}")'
...
return eval(encrypt_function) # FAIL
But in simple ruby script function Digest::SHA256.hexdigest works fine. I changed to OpenSSL::Digest::SHA256.hexdigest in rubycas-server and it works...
Maybe you can advice how to solve this problem without source change?
Thanks in advance.