Tuesday, June 10, 2014

RUBYCAS Server Installation

Installing RubyCAS server
Steps::
1.  git clone git://github.com/rubycas/rubycas-server.git
2. cd rubycas-server
3. Customize config.yml
     server: webrick
          port: 8888
          database:
            adapter: postgresql
            database: casserver
            username: xxxx
            password: xxxxx
            host: localhost
            reconnect: true
3.start database: pg_ctl –D /usr/local/var/postgres start
4.create database: createdb casserver
5. Modified config.yml 
      log:
            file: /Users/xxxxxxx/Desktop/Harini/projects/log/casserver.log
            level: INFO
Note:: Created log folder in 
          /Users/xxxxxxxx/Desktop/Harini/projects

Error::
!!! No authenticators have been configured. Please double-check your config file ("/Users/hkorupolu/Desktop/Harini/projects/rubycas-server/lib/casserver/../../config.yml”).

Downloaded demo ssl certificate here.

#config.yaml
server: webrick
port: 4000
ssl_cert: /Users/xxxxxxxx/Desktop/Harini/KEYS/rubycas-server-demo.pem

database:
  adapter: postgresql
  database: casserver
  username: xxx
  password: xxxxxx
  host: localhost
  reconnect: true

authenticator:
 - class: CASServer::Authenticators::Google
 - class: CASServer::Authenticators::SQL
   database:
     adapter: postgresql
     database: ich-identity_development
     username: xxxx
     password: xxxxxx
     host: localhost
   user_table: users
   username_column: user_name
   password_column: encrypted_password

theme: simple
organization: XXXX
infoline: Powered by http://rubycas.github.com">RubyCAS-Server


log:
  file: /Users/xxxxxx/Desktop/Harini/projects/log/casserver.log
  level: INFO

# Start the Rubycas server
>rubycas-server

#Browser
https://localhost:4000

No comments:

About Me

Friendly and humanitarian Honest and loyal Original and inventive Independent and intellectual