Hi all,
I have installed redmine_cas plugin for chiliproject from git://gitorious.org/redmine_cas/redmine_cas.git. The chiliproject uses hashed_password in users table. In my rubycas-server I use SQLEncrypted authenticator. My config file for rubycas-server has.
authenticator:
class: CASServer::Authenticators::SQLEncrypted
database:
adapter: mysql
database: my_database
username: username
password: password
host: localhost
user_table: users
username_column: login
encrypt_function: 'user.hashed_password == Digest::SHA1.hexdigest("#{user.salt} + Digest::SHA1.hexdigest(#{@hashed_password})")'
I found chiliproject is using SHA1 in the file model/user.rb, it stores the password in the format 'SHA1)'
When I try to login it throws the error:
ActiveRecord::SubclassNotFound at /login
The single-table inheritance mechanism failed to locate the subclass: 'User'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite CASServer::Authenticators::SQLEncrypted::CASUser_0.inheritance_column to use another column for that information.
Is my authenticator configuration correct?
Please help me to find the solutions.
--
Nagaraj