I cloned the latest version from the repo and tried to get it work. I followed the Quickstart and Installation Guide but I end up with the following error:
Environment:
Ruby 1.9.3 with rvm on Mac OS.
$ bundle install
Resolving dependencies...
Using rake (0.8.7)
Using i18n (0.6.1)
Using multi_json (1.3.6)
Using activesupport (3.2.8)
Using builder (3.0.4)
Using activemodel (3.2.8)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.8)
Using mysql2 (0.3.13)
Using activerecord-mysql2-adapter (0.0.3)
Using activeresource (3.2.8)
Using addressable (2.3.2)
Using bundler (1.3.5)
Using appraisal (0.4.1)
Using mime-types (1.19)
Using nokogiri (1.5.5)
Using rack (1.4.1)
Using rack-test (0.6.2)
Using ffi (1.1.5)
Using childprocess (0.3.6)
Using libwebsocket (0.1.5)
Using rubyzip (0.9.9)
Using selenium-webdriver (2.25.0)
Using xpath (0.1.4)
Using capybara (1.1.2)
Using crack (0.3.1)
Using crypt-isaac (0.9.1)
Using diff-lcs (1.1.3)
Using listen (0.5.3)
Using thor (0.16.0)
Using guard (1.4.0)
Using rspec-core (2.11.1)
Using rspec-expectations (2.11.3)
Using rspec-mocks (2.11.3)
Using rspec (2.11.0)
Using guard-rspec (2.0.0)
Using net-ldap (0.1.1)
Using r18n-core (1.1.1)
Using rack-protection (1.2.0)
Using rb-fsevent (0.9.3)
Using tilt (1.3.3)
Using sinatra (1.3.3)
Using sinatra-r18n (1.1.1)
Using rubycas-server (1.1.3.pre) from source at .
Using sqlite3 (1.3.6)
Using webmock (1.9.0)
Your bundle is complete!
Use bundle show [gemname] to see where a bundled gem is installed.
$ bundle exec rubycas-server -c config.yml
=> Using custom config file "config.yml"
/Users/sebastian/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:203:in parse': (<unknown>): mapping values are not allowed in this context at line 183 column 11 (Psych::SyntaxError) from /Users/sebastian/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:203:inparse_stream'
from /Users/sebastian/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:151:in parse' from /Users/sebastian/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:127:inload'
from /Users/sebastian/Sites/rubycas-server/lib/casserver/server.rb:135:in load_config_file' from /Users/sebastian/Sites/rubycas-server/lib/casserver/server.rb:271:inblock in class:Server'
from /Users/sebastian/.rvm/gems/ruby-1.9.3-p448/gems/sinatra-1.3.3/lib/sinatra/base.rb:1328:in configure' from /Users/sebastian/Sites/rubycas-server/lib/casserver/server.rb:270:inclass:Server'
from /Users/sebastian/Sites/rubycas-server/lib/casserver/server.rb:6:in <module:CASServer>' from /Users/sebastian/Sites/rubycas-server/lib/casserver/server.rb:5:in<top (required)>'
from /Users/sebastian/Sites/rubycas-server/lib/casserver.rb:18:in require' from /Users/sebastian/Sites/rubycas-server/lib/casserver.rb:18:in<top (required)>'
from /Users/sebastian/Sites/rubycas-server/bin/rubycas-server:28:in require' from /Users/sebastian/Sites/rubycas-server/bin/rubycas-server:28:in<top (required)>'
from /Users/sebastian/.rvm/gems/ruby-1.9.3-p448/bin/rubycas-server:23:in load' from /Users/sebastian/.rvm/gems/ruby-1.9.3-p448/bin/rubycas-server:23:in'
At Line 183 there is my configured authenticator (it's the SQL example):
181 - authenticator:
182 - class: CASServer::Authenticators::SQL
183 - database:
184 - adapter: mysql2
185 - database: test
186 - username: test
187 - password: test
188 - host: localhost
189 - user_table: users
190 - username_column: username
191 - password_column: password
Any idea what's wrong in the config or is there something else broken?
Hello,
I cloned the latest version from the repo and tried to get it work. I followed the Quickstart and Installation Guide but I end up with the following error:
Environment: Ruby 1.9.3 with rvm on Mac OS.
$ bundle install Resolving dependencies... Using rake (0.8.7) Using i18n (0.6.1) Using multi_json (1.3.6) Using activesupport (3.2.8) Using builder (3.0.4) Using activemodel (3.2.8) Using arel (3.0.2) Using tzinfo (0.3.33) Using activerecord (3.2.8) Using mysql2 (0.3.13) Using activerecord-mysql2-adapter (0.0.3) Using activeresource (3.2.8) Using addressable (2.3.2) Using bundler (1.3.5) Using appraisal (0.4.1) Using mime-types (1.19) Using nokogiri (1.5.5) Using rack (1.4.1) Using rack-test (0.6.2) Using ffi (1.1.5) Using childprocess (0.3.6) Using libwebsocket (0.1.5) Using rubyzip (0.9.9) Using selenium-webdriver (2.25.0) Using xpath (0.1.4) Using capybara (1.1.2) Using crack (0.3.1) Using crypt-isaac (0.9.1) Using diff-lcs (1.1.3) Using listen (0.5.3) Using thor (0.16.0) Using guard (1.4.0) Using rspec-core (2.11.1) Using rspec-expectations (2.11.3) Using rspec-mocks (2.11.3) Using rspec (2.11.0) Using guard-rspec (2.0.0) Using net-ldap (0.1.1) Using r18n-core (1.1.1) Using rack-protection (1.2.0) Using rb-fsevent (0.9.3) Using tilt (1.3.3) Using sinatra (1.3.3) Using sinatra-r18n (1.1.1) Using rubycas-server (1.1.3.pre) from source at . Using sqlite3 (1.3.6) Using webmock (1.9.0) Your bundle is complete! Use
bundle show [gemname]
to see where a bundled gem is installed.$ bundle exec rubycas-server -c config.yml
=> Using custom config file "config.yml" /Users/sebastian/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:203:in'
parse': (<unknown>): mapping values are not allowed in this context at line 183 column 11 (Psych::SyntaxError) from /Users/sebastian/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:203:in
parse_stream' from /Users/sebastian/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:151:inparse' from /Users/sebastian/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:127:in
load' from /Users/sebastian/Sites/rubycas-server/lib/casserver/server.rb:135:inload_config_file' from /Users/sebastian/Sites/rubycas-server/lib/casserver/server.rb:271:in
block in class:Server' from /Users/sebastian/.rvm/gems/ruby-1.9.3-p448/gems/sinatra-1.3.3/lib/sinatra/base.rb:1328:inconfigure' from /Users/sebastian/Sites/rubycas-server/lib/casserver/server.rb:270:in
class:Server' from /Users/sebastian/Sites/rubycas-server/lib/casserver/server.rb:6:in<module:CASServer>' from /Users/sebastian/Sites/rubycas-server/lib/casserver/server.rb:5:in
<top (required)>' from /Users/sebastian/Sites/rubycas-server/lib/casserver.rb:18:inrequire' from /Users/sebastian/Sites/rubycas-server/lib/casserver.rb:18:in
<top (required)>' from /Users/sebastian/Sites/rubycas-server/bin/rubycas-server:28:inrequire' from /Users/sebastian/Sites/rubycas-server/bin/rubycas-server:28:in
<top (required)>' from /Users/sebastian/.rvm/gems/ruby-1.9.3-p448/bin/rubycas-server:23:inload' from /Users/sebastian/.rvm/gems/ruby-1.9.3-p448/bin/rubycas-server:23:in
At Line 183 there is my configured authenticator (it's the SQL example): 181 - authenticator: 182 - class: CASServer::Authenticators::SQL 183 - database: 184 - adapter: mysql2 185 - database: test 186 - username: test 187 - password: test 188 - host: localhost 189 - user_table: users 190 - username_column: username 191 - password_column: password
Any idea what's wrong in the config or is there something else broken?
kindly regards, Sebastian