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