synapse-rubycas-server 1.1.3alpha → 1.1.3.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTU5OWZjYTgxYjZhZTU0YTc4NzU3YTIwNGNhOTA0MDQ5NjQxMjVlZg==
4
+ MWQ2MDlhNWNlNDhlYWY3MzJlNWFjNjBkNjRiNjBjMzJmMzQyM2Y3ZA==
5
5
  data.tar.gz: !binary |-
6
- N2Y4MmJlMWExYzRkODU5ZjU4ZDY1YWZhNjNiNWQzNGNlNDFhNDcwZg==
6
+ ZjJlZGYwZTdmNzVlNmIxYzYzNjY4ZDJmYWUxNWQ0NTQzNWQwMGZkNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NWQyY2EwY2YxNTYyZTVkOTlmM2M5NmRiZWYxYjQyNTc0YzMzYzE0Mjg4MzE4
10
- MzFmNWFhZDVmODAxOWU3YTU2NjUzMjQ5YjZiY2NlMjViNzhjZjc2OGNjMmJl
11
- NmU1MTRiYjBhZThlMzlkZjY5NmZmMjdhMzhkY2RhM2Y3ODE5M2U=
9
+ MzAxN2U0OTAxYzA2YjQzZGUwMzQzOTUwOWU0NjhmMzk1MWJkZjQxMjA3ZDUz
10
+ NDMzMTQyZTI4OWNkYjI2NTA1OWI5ZDI0NTZlOTlkOWQ0ZWU1MDljNDBkZGZj
11
+ ZDMwNzdlZTg1NDQ4MzkzNTZkODI1ZGE5M2RiMmIxYzlkNDkzZjA=
12
12
  data.tar.gz: !binary |-
13
- ZDM3YzY4NjE1MTg2Zjk3NDEzNTU3NmNlNDFkZDQ5ZDI4NTk2NGJiMzJjOGZm
14
- ZjAzN2VmZGZhOTUyYmFkNDEyMDA5ZjlhMDQ4YzExZTgzZTdlNjcyZDY3Nzk5
15
- ODhiM2YzZDU4OWQ0OThjODY3MzFhYTA2ZmE0YzAxMGFmMjNhNTc=
13
+ NjU4MjYyNmJmODQ4YjdhY2Y5MzRmMjI3ZTQ5Mzc1YmE4ZDZlZDFhOGQ3ZGVh
14
+ MjEzMTdlYzM0OWVjYTZiOTM4YmFkNmRjNWU0ZGEzMjU0ZDI1OGU0ZjI2OWQx
15
+ NzQ5ZGVkZDI5ZGQ1YjNkNjc5NGMxODE0M2E2MzdlMjlkMjk0Yjc=
data/Gemfile CHANGED
@@ -10,3 +10,5 @@ end
10
10
  group :active_resource do
11
11
  gem "activeresource", ">= 2.3.12", "< 4.0"
12
12
  end
13
+
14
+ gem "mysql2"
data/Rakefile CHANGED
@@ -1,3 +1,8 @@
1
1
  require 'appraisal'
2
2
  Dir['tasks/**/*.rake'].each { |rake| load rake }
3
3
  task :default => :spec
4
+
5
+ desc "Open an irb session preloaded with this library"
6
+ task :console do
7
+ sh "irb -rubygems -I lib -r casserver.rb"
8
+ end
@@ -41,11 +41,11 @@ class DirectoryUser
41
41
  [ :add, :unicodePwd, [microsoft_encode_password(password)] ]
42
42
  ]
43
43
  ldap_con.modify(:dn => dn, :operations => ops)
44
- if ldap_con.get_operation_result.code == 0
45
- return true
46
- else
47
- raise StandardError, "Password field was not updated for #{username}. LDAP #{ldap_con.get_operation_result.code} Error: #{ldap_con.get_operation_result.message}"
48
- end
44
+ # true
45
+ # else
46
+ # puts result[:dn].first
47
+ # raise StandardError, "Password field was not updated for #{username}. LDAP #{ldap_con.get_operation_result.code} Error: #{ldap_con.get_operation_result.message}"
48
+ # end
49
49
  else
50
50
  raise StandardError, "Ldap failed to connect Error #{ldap_con.get_operation_result.message}"
51
51
  end
@@ -0,0 +1,62 @@
1
+ $gemspec = Gem::Specification.new do |s|
2
+ s.name = 'synapse-rubycas-server'
3
+ s.version = '1.1.3.pre'
4
+ s.authors = ["Matt Zukowski"]
5
+ s.email = ["matt@zukowski.ca"]
6
+ s.homepage = 'https://github.com/rubycas/rubycas-server'
7
+ s.platform = Gem::Platform::RUBY
8
+ s.summary = %q{Provides single sign-on authentication for web applications using the CAS protocol.}
9
+ s.description = %q{Provides single sign-on authentication for web applications using the CAS protocol.}
10
+
11
+ s.files = [
12
+ "CHANGELOG", "LICENSE", "README.md", "Rakefile",
13
+ "bin/*", "db/**/*", "lib/**/*.rb", "public/**/*", "locales/**/*", "resources/*.*",
14
+ "config.ru", "config/**/*", "tasks/**/*.rake", "lib/**/*.erb", "lib/**/*.builder",
15
+ "Gemfile", "rubycas-server.gemspec"
16
+ ].map{|p| Dir[p]}.flatten
17
+
18
+ s.test_files = `git ls-files -- spec`.split("\n")
19
+
20
+ s.executables = ["rubycas-server"]
21
+ s.bindir = "bin"
22
+ s.require_path = "lib"
23
+
24
+ s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README.md"]
25
+
26
+ s.has_rdoc = true
27
+ s.post_install_message = "For more information on RubyCAS-Server, see http://rubycas.github.com"
28
+
29
+ s.add_dependency("activerecord", ">= 2.3.12", "< 4.0")
30
+ s.add_dependency("activesupport", ">= 2.3.12", "< 4.0")
31
+ s.add_dependency("sinatra", "~> 1.0")
32
+ s.add_dependency("sinatra-r18n", '~> 1.1.0')
33
+ s.add_dependency("crypt-isaac", "~> 0.9.1")
34
+
35
+ s.add_development_dependency("rack-test")
36
+ s.add_development_dependency("capybara", '1.1.2')
37
+ s.add_development_dependency("rspec")
38
+ s.add_development_dependency("rspec-core")
39
+ s.add_development_dependency("rake", "0.8.7")
40
+ s.add_development_dependency("sqlite3", "~> 1.3.1")
41
+ s.add_development_dependency("appraisal", "~> 0.4.1")
42
+ s.add_development_dependency("guard", "~> 1.4.0")
43
+ s.add_development_dependency("guard-rspec", "2.0.0")
44
+ s.add_development_dependency("webmock", "~> 1.8")
45
+ s.add_development_dependency("nokogiri", "~> 1.3")
46
+
47
+ # pull in os specific FS monitoring lib for guard
48
+ case RUBY_PLATFORM
49
+ when /darwin/i
50
+ s.add_development_dependency("rb-fsevent", "~> 0.9.2")
51
+ when /linux/i
52
+ s.add_development_dependency("rb-inotify", "~> 0.8.8")
53
+ when /mswin|bccwin|wince/i
54
+ s.add_development_dependency('wdm', '~> 0.0.3') if RUBY_VERSION >= '1.9.2'
55
+ s.add_development_dependency('win32console', "~> 1.3.2")
56
+ end
57
+
58
+ s.rdoc_options = [
59
+ '--quiet', '--title', 'RubyCAS-Server Documentation', '--opname',
60
+ 'index.html', '--line-numbers', '--main', 'README.md', '--inline-source'
61
+ ]
62
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synapse-rubycas-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3alpha
4
+ version: 1.1.3.pre
5
5
  platform: ruby
6
6
  authors:
7
- - Adam Saegebarth
7
+ - Matt Zukowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-24 00:00:00.000000000 Z
11
+ date: 2013-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -263,7 +263,7 @@ dependencies:
263
263
  description: Provides single sign-on authentication for web applications using the
264
264
  CAS protocol.
265
265
  email:
266
- - adams@synapse.com
266
+ - matt@zukowski.ca
267
267
  executables:
268
268
  - rubycas-server
269
269
  extensions: []
@@ -347,6 +347,7 @@ files:
347
347
  - lib/casserver/views/proxy_validate.builder
348
348
  - lib/casserver/views/service_validate.builder
349
349
  - Gemfile
350
+ - rubycas-server.gemspec
350
351
  - spec/casserver/authenticators/active_resource_spec.rb
351
352
  - spec/casserver/authenticators/ldap_spec.rb
352
353
  - spec/casserver/cas_spec.rb