Displaying 1 result from an estimated 1 matches for "encrypt_function".
2012 Jun 08
2
rubycas-server login fail
...n 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....