public
Rubygem
Description: CAS Server
Homepage:
Clone URL: git://github.com/relevance/castronaut.git
name age message
file .autotest Tue Sep 09 08:34:34 -0700 2008 Service ticket validation complete [Chad Humphries]
file .gitignore Fri Oct 10 16:01:43 -0700 2008 adding support for ldap authentication [abedra]
file MIT-LICENSE Wed Sep 03 08:01:40 -0700 2008 Gem framework in place [Chad Humphries]
file README.textile Fri Oct 10 19:25:52 -0700 2008 indenting ldap options in readme [abedra]
file Rakefile Sat Jun 13 13:32:40 -0700 2009 putting rcov threshold back to normal [abedra]
file VERSION.yml Fri May 22 08:09:48 -0700 2009 Version bump to 0.7.5 [abedra]
directory app/ Fri May 22 07:12:24 -0700 2009 fixing deprication warnings [abedra]
directory bin/ Sat Jan 24 12:15:14 -0800 2009 converting to jeweler for packaging, fixing err... [abedra]
file castronaut.gemspec Fri May 22 08:09:50 -0700 2009 Regenerated gemspec for version 0.7.5 [abedra]
file castronaut.rb Fri May 22 07:01:39 -0700 2009 fixing test suite to work with the latest versi... [abedra]
directory config/ Fri Jan 02 18:24:25 -0800 2009 adding support for castronaut binary to write s... [abedra]
directory doc/ Sat Jan 24 10:03:34 -0800 2009 updating docs [abedra]
directory lib/ Sat Jun 13 13:36:42 -0700 2009 doh [abedra]
directory script/ Sat Jan 24 10:25:46 -0800 2009 fixing script/console [abedra]
directory spec/ Fri May 22 08:07:51 -0700 2009 fixing build [abedra]
directory vendor/ Sat Jan 24 10:54:08 -0800 2009 upgrading activerecord and activesupport [abedra]

Castronaut

Description

Castronaut is an server implementation for the CAS (version 2.0) protocol. It is currently a work in progress but should function properly with the latest release of Restfult Auth. More authentication adapters coming soon.

Usage

castronaut

or

castronaut -C /path/to/config

Support

  • Database authentication with the restful authentication encryption routines.
  • LDAP (openLDAP) annonymous bind only. Authenticated bind comming soon.

Configuration

Castronaut requires a configuration file to function. Your configuration should be similar to the following:

organization_name: Foo Bar Baz Industries, LLC Inc. A division of Holdings Co.
environment: development
server_port: 4567
log_directory: log
log_level: Logger::DEBUG
ssl_enabled: false
cas_database:
 adapter: sqlite3
 database: db/cas.db
 timeout: 5000
cas_adapter:
 adapter: database
 site_key: 03523your093023site0985225key098290here9
 digest_stretches: 10
 database:
   adapter: sqlite3
   database: db/cas_adapter.db
   timeout: 5000
Uncomment these to enable authentication callbacks
callbacks:
 on_authentication_success: http://example.com/authentication/success
 on_authentication_failed: http://example.com/authentication/failed
extra_ui_actions:
 'Forgot Password': http://example.com/

or if you are using LDAP

Use this example if you are using LDAP as your authentication source
cas_adapter:
 adapter: ldap
 host: localhost
 port: 389
 prefix: cn=
 base: dc=example, dc=com