godfat-rubycas-server 0.8.0.20090918

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. data/CHANGELOG.txt +1 -0
  2. data/History.txt +273 -0
  3. data/LICENSE.txt +504 -0
  4. data/Manifest.txt +83 -0
  5. data/PostInstall.txt +3 -0
  6. data/README.rdoc +26 -0
  7. data/Rakefile +115 -0
  8. data/bin/rubycas-server +13 -0
  9. data/bin/rubycas-server-ctl +9 -0
  10. data/config.example.yml +555 -0
  11. data/config.ru +38 -0
  12. data/config/hoe.rb +78 -0
  13. data/config/requirements.rb +15 -0
  14. data/custom_views.example.rb +11 -0
  15. data/lib/casserver.rb +58 -0
  16. data/lib/casserver/authenticators/active_directory_ldap.rb +11 -0
  17. data/lib/casserver/authenticators/authlogic_crypto_providers/aes256.rb +43 -0
  18. data/lib/casserver/authenticators/authlogic_crypto_providers/bcrypt.rb +92 -0
  19. data/lib/casserver/authenticators/authlogic_crypto_providers/md5.rb +34 -0
  20. data/lib/casserver/authenticators/authlogic_crypto_providers/sha1.rb +35 -0
  21. data/lib/casserver/authenticators/authlogic_crypto_providers/sha512.rb +50 -0
  22. data/lib/casserver/authenticators/base.rb +48 -0
  23. data/lib/casserver/authenticators/client_certificate.rb +46 -0
  24. data/lib/casserver/authenticators/google.rb +54 -0
  25. data/lib/casserver/authenticators/ldap.rb +147 -0
  26. data/lib/casserver/authenticators/ntlm.rb +88 -0
  27. data/lib/casserver/authenticators/open_id.rb +22 -0
  28. data/lib/casserver/authenticators/sql.rb +119 -0
  29. data/lib/casserver/authenticators/sql_authlogic.rb +92 -0
  30. data/lib/casserver/authenticators/sql_encrypted.rb +92 -0
  31. data/lib/casserver/authenticators/sql_md5.rb +19 -0
  32. data/lib/casserver/authenticators/sql_rest_auth.rb +71 -0
  33. data/lib/casserver/authenticators/test.rb +19 -0
  34. data/lib/casserver/cas.rb +322 -0
  35. data/lib/casserver/conf.rb +75 -0
  36. data/lib/casserver/controllers.rb +463 -0
  37. data/lib/casserver/load_picnic.rb +19 -0
  38. data/lib/casserver/localization.rb +82 -0
  39. data/lib/casserver/models.rb +265 -0
  40. data/lib/casserver/postambles.rb +174 -0
  41. data/lib/casserver/utils.rb +30 -0
  42. data/lib/casserver/version.rb +9 -0
  43. data/lib/casserver/views.rb +249 -0
  44. data/lib/rubycas-server.rb +1 -0
  45. data/lib/rubycas-server/version.rb +1 -0
  46. data/po/de_DE/rubycas-server.po +119 -0
  47. data/po/es_ES/rubycas-server.po +115 -0
  48. data/po/fr_FR/rubycas-server.po +116 -0
  49. data/po/ja_JP/rubycas-server.po +118 -0
  50. data/po/pl_PL/rubycas-server.po +115 -0
  51. data/po/pt_BR/rubycas-server.po +115 -0
  52. data/po/ru_RU/rubycas-server.po +110 -0
  53. data/po/rubycas-server.pot +104 -0
  54. data/public/themes/cas.css +121 -0
  55. data/public/themes/notice.png +0 -0
  56. data/public/themes/ok.png +0 -0
  57. data/public/themes/simple/bg.png +0 -0
  58. data/public/themes/simple/login_box_bg.png +0 -0
  59. data/public/themes/simple/logo.png +0 -0
  60. data/public/themes/simple/theme.css +28 -0
  61. data/public/themes/urbacon/bg.png +0 -0
  62. data/public/themes/urbacon/login_box_bg.png +0 -0
  63. data/public/themes/urbacon/logo.png +0 -0
  64. data/public/themes/urbacon/theme.css +33 -0
  65. data/public/themes/warning.png +0 -0
  66. data/resources/init.d.sh +58 -0
  67. data/script/console +10 -0
  68. data/script/destroy +14 -0
  69. data/script/generate +14 -0
  70. data/script/txt2html +82 -0
  71. data/setup.rb +1585 -0
  72. data/tasks/deployment.rake +34 -0
  73. data/tasks/environment.rake +7 -0
  74. data/tasks/localization.rake +11 -0
  75. data/tasks/website.rake +17 -0
  76. data/vendor/isaac_0.9.1/LICENSE +26 -0
  77. data/vendor/isaac_0.9.1/README +78 -0
  78. data/vendor/isaac_0.9.1/TODO +3 -0
  79. data/vendor/isaac_0.9.1/VERSIONS +3 -0
  80. data/vendor/isaac_0.9.1/crypt/ISAAC.rb +171 -0
  81. data/vendor/isaac_0.9.1/isaac.gemspec +39 -0
  82. data/vendor/isaac_0.9.1/setup.rb +596 -0
  83. data/vendor/isaac_0.9.1/test/TC_ISAAC.rb +76 -0
  84. metadata +200 -0
@@ -0,0 +1,110 @@
1
+ # Russian translation for Rubycas server.
2
+ # Copyright (C) Matt Zukowski
3
+ # This file is distributed under the same license as the rubycas-server package.
4
+ # Antono Vasiljev <antono.vasiljev@gmail.com>, 2008.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: rubycas-server \n"
9
+ "POT-Creation-Date: 2009-05-06 18:16-0400\n"
10
+ "PO-Revision-Date: 2008-11-04 12:32+0200\n"
11
+ "Last-Translator: Antono Vasiljev <antono.vasiljev@gmail.com>\n"
12
+ "Language-Team: Russian <ru@li.org>\n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
17
+
18
+ #: lib/casserver/cas.rb:117
19
+ msgid ""
20
+ "Your login request did not include a login ticket. There may be a problem "
21
+ "with the authentication system."
22
+ msgstr ""
23
+
24
+ #: lib/casserver/cas.rb:121
25
+ msgid ""
26
+ "The login ticket you provided has already been used up. Please try logging "
27
+ "in again."
28
+ msgstr ""
29
+
30
+ #: lib/casserver/cas.rb:126
31
+ msgid "You took too long to enter your credentials. Please try again."
32
+ msgstr ""
33
+
34
+ #: lib/casserver/cas.rb:130
35
+ msgid ""
36
+ "The login ticket you provided is invalid. There may be a problem with the "
37
+ "authentication system."
38
+ msgstr ""
39
+
40
+ #: lib/casserver/controllers.rb:32
41
+ msgid ""
42
+ "You are currently logged in as '%s'. If this is not you, please log in below."
43
+ msgstr "Вы авторизированы как '%s'."
44
+
45
+ #: lib/casserver/controllers.rb:37
46
+ msgid ""
47
+ "The client and server are unable to negotiate authentication. Please try "
48
+ "logging in again later."
49
+ msgstr ""
50
+ "Клиент и сервер не могут провести проверку прав. Попробуйте войти позже."
51
+
52
+ #: lib/casserver/controllers.rb:54
53
+ msgid ""
54
+ "The server cannot fulfill this gateway request because no service parameter "
55
+ "was given."
56
+ msgstr ""
57
+ "Этот сервер не может выполнить этот запрос, поскольку не были указаны "
58
+ "праметры сервиса."
59
+
60
+ #: lib/casserver/controllers.rb:59 lib/casserver/controllers.rb:195
61
+ msgid ""
62
+ "The target service your browser supplied appears to be invalid. Please "
63
+ "contact your system administrator for help."
64
+ msgstr ""
65
+ "Сервис, указанный вашим браузером, неверен. Свяжитесь с вашим системным "
66
+ "администратором."
67
+
68
+ #: lib/casserver/controllers.rb:88
69
+ msgid ""
70
+ "Could not guess the CAS login URI. Please supply a submitToURI parameter "
71
+ "with your request."
72
+ msgstr ""
73
+ "Не возможно угадать адрес входа на CAS. Пожалуйста, передайте с запросом "
74
+ "параметр submitToURI."
75
+
76
+ #: lib/casserver/controllers.rb:184
77
+ msgid "You have successfully logged in."
78
+ msgstr "Вы успешно вошли."
79
+
80
+ #: lib/casserver/controllers.rb:200
81
+ msgid "Incorrect username or password."
82
+ msgstr "Неверное имя пользователя или пароль."
83
+
84
+ #: lib/casserver/controllers.rb:257
85
+ msgid "You have successfully logged out."
86
+ msgstr "Вы успешно вышли."
87
+
88
+ #: lib/casserver/controllers.rb:260
89
+ msgid " Please click on the following link to continue:"
90
+ msgstr " Перейдите по ссылке чтобы продолжить: "
91
+
92
+ #: lib/casserver/controllers.rb:410
93
+ msgid "To generate a login ticket, you must make a POST request."
94
+ msgstr "Чтобы сгенерировать входной билет вы должны делать POST запрос."
95
+
96
+ #: lib/casserver/views.rb:43 lib/casserver/views.rb:113
97
+ msgid " Central Login"
98
+ msgstr " Центральный вход"
99
+
100
+ #: lib/casserver/views.rb:73
101
+ msgid "Username"
102
+ msgstr "Логин"
103
+
104
+ #: lib/casserver/views.rb:82
105
+ msgid "Password"
106
+ msgstr "Пароль"
107
+
108
+ #: lib/casserver/views.rb:94
109
+ msgid "LOGIN"
110
+ msgstr "Войти"
@@ -0,0 +1,104 @@
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) 2009 of The Contributors (see project history on github.com)
3
+ # This file is distributed under the same license as the RubyCAS-Server package.
4
+ # Matt Zukowski, 2009.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: rubycas-server \n"
10
+ "POT-Creation-Date: 2009-05-06 18:16-0400\n"
11
+ "PO-Revision-Date: 2008-10-29 20:55+0200\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
18
+
19
+ #: lib/casserver/cas.rb:117
20
+ msgid ""
21
+ "Your login request did not include a login ticket. There may be a problem "
22
+ "with the authentication system."
23
+ msgstr ""
24
+
25
+ #: lib/casserver/cas.rb:121
26
+ msgid ""
27
+ "The login ticket you provided has already been used up. Please try logging "
28
+ "in again."
29
+ msgstr ""
30
+
31
+ #: lib/casserver/cas.rb:126
32
+ msgid "You took too long to enter your credentials. Please try again."
33
+ msgstr ""
34
+
35
+ #: lib/casserver/cas.rb:130
36
+ msgid ""
37
+ "The login ticket you provided is invalid. There may be a problem with the "
38
+ "authentication system."
39
+ msgstr ""
40
+
41
+ #: lib/casserver/controllers.rb:32
42
+ msgid ""
43
+ "You are currently logged in as '%s'. If this is not you, please log in below."
44
+ msgstr ""
45
+
46
+ #: lib/casserver/controllers.rb:37
47
+ msgid ""
48
+ "The client and server are unable to negotiate authentication. Please try "
49
+ "logging in again later."
50
+ msgstr ""
51
+
52
+ #: lib/casserver/controllers.rb:54
53
+ msgid ""
54
+ "The server cannot fulfill this gateway request because no service parameter "
55
+ "was given."
56
+ msgstr ""
57
+
58
+ #: lib/casserver/controllers.rb:59 lib/casserver/controllers.rb:195
59
+ msgid ""
60
+ "The target service your browser supplied appears to be invalid. Please "
61
+ "contact your system administrator for help."
62
+ msgstr ""
63
+
64
+ #: lib/casserver/controllers.rb:88
65
+ msgid ""
66
+ "Could not guess the CAS login URI. Please supply a submitToURI parameter "
67
+ "with your request."
68
+ msgstr ""
69
+
70
+ #: lib/casserver/controllers.rb:184
71
+ msgid "You have successfully logged in."
72
+ msgstr ""
73
+
74
+ #: lib/casserver/controllers.rb:200
75
+ msgid "Incorrect username or password."
76
+ msgstr ""
77
+
78
+ #: lib/casserver/controllers.rb:257
79
+ msgid "You have successfully logged out."
80
+ msgstr ""
81
+
82
+ #: lib/casserver/controllers.rb:260
83
+ msgid " Please click on the following link to continue:"
84
+ msgstr ""
85
+
86
+ #: lib/casserver/controllers.rb:410
87
+ msgid "To generate a login ticket, you must make a POST request."
88
+ msgstr ""
89
+
90
+ #: lib/casserver/views.rb:43 lib/casserver/views.rb:113
91
+ msgid " Central Login"
92
+ msgstr ""
93
+
94
+ #: lib/casserver/views.rb:73
95
+ msgid "Username"
96
+ msgstr ""
97
+
98
+ #: lib/casserver/views.rb:82
99
+ msgid "Password"
100
+ msgstr ""
101
+
102
+ #: lib/casserver/views.rb:94
103
+ msgid "LOGIN"
104
+ msgstr ""
@@ -0,0 +1,121 @@
1
+ * {
2
+ font-family: Verdana, sans-serif;
3
+ }
4
+
5
+ body {
6
+ text-align: center; /* hack for IE */
7
+ }
8
+
9
+ label {
10
+ font-weight: bold;
11
+ font-size: 9px;
12
+ }
13
+
14
+ input {
15
+ font-weight: normal;
16
+ font-size: 12px;
17
+ }
18
+
19
+ input.button {
20
+ /*font-weight: bold;*/
21
+ font-size: 10px;
22
+ }
23
+
24
+ #login-box {
25
+ margin: 0 auto;
26
+ width: 350px;
27
+ top: 130px;
28
+ position: relative;
29
+ }
30
+
31
+ #headline-container {
32
+ text-align: right;
33
+ border-bottom: 1px solid #899989;
34
+ font-family: Tahoma, Verdana, sans-serif;
35
+ font-size: 22px;
36
+ margin-right: 0px;
37
+ padding-right: 7px;
38
+ margin-left: 10px;
39
+ letter-spacing: -0.25px;
40
+ }
41
+
42
+ #logo-container {
43
+ vertical-align: top;
44
+ }
45
+
46
+ #logo {
47
+ }
48
+
49
+ #login-form-container {
50
+ vertical-align: top;
51
+ }
52
+
53
+
54
+ #username,
55
+ #password {
56
+ width: 10em;
57
+ }
58
+
59
+ #login-form {
60
+ padding: 20px;
61
+ }
62
+
63
+
64
+ #form-layout {
65
+ position: relative;
66
+ top: 6px;
67
+ width: 100%;
68
+ }
69
+
70
+ #form-layout td {
71
+ text-align: center;
72
+ padding-bottom: 8px;
73
+ }
74
+
75
+ #form-layout td#submit-container {
76
+ text-align: right;
77
+ padding-right: 10px;
78
+ }
79
+
80
+ #infoline {
81
+ font-size: 9px;
82
+ }
83
+
84
+ #messagebox-container {
85
+ padding-left: 11px;
86
+ padding-right: 16px;
87
+ }
88
+
89
+ div.messagebox {
90
+ font-size: 12px;
91
+ padding: 5px;
92
+ padding-left: 55px;
93
+ text-align: center;
94
+ width: 70%;
95
+ min-height: 34px;
96
+ vertical-align: middle;
97
+ }
98
+
99
+ div.mistake {
100
+ color: #d00;
101
+ background-image: url(warning.png);
102
+ background-repeat: no-repeat;
103
+ background-position: 10px 5px;
104
+ font-weight: bold;
105
+ }
106
+
107
+ div.confirmation {
108
+ color: #280;
109
+ background-image: url(ok.png);
110
+ background-repeat: no-repeat;
111
+ background-position: 10px 5px;
112
+ font-weight: bold;
113
+ }
114
+
115
+ div.notice {
116
+ color: #04c;
117
+ background-image: url(notice.png);
118
+ background-repeat: no-repeat;
119
+ background-position: 10px 5px;
120
+ font-weight: bold;
121
+ }
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,28 @@
1
+ body {
2
+ background-image: url(bg.png);
3
+ }
4
+
5
+ #headline-container {
6
+ margin-bottom: 5px;
7
+ }
8
+
9
+ #login-box {
10
+ margin: 0 auto;
11
+ width: 450px;
12
+ top: 110px;
13
+ position: relative;
14
+ }
15
+
16
+ #login-form {
17
+ background-color: #fff;
18
+ border: 1px #aaa solid;
19
+ }
20
+
21
+ #logo-container {
22
+ vertical-align: middle;
23
+ }
24
+
25
+ #logo {
26
+ width: 128px;
27
+ height: 128px;
28
+ }
Binary file
Binary file
@@ -0,0 +1,33 @@
1
+ body {
2
+ background-image: url(bg.png);
3
+ }
4
+
5
+ label {
6
+ color: #5c6156;
7
+ }
8
+
9
+ #login-form {
10
+ background-repeat: no-repeat;
11
+ background-image: url(login_box_bg.png);
12
+ height: 175px;
13
+ width: 210px;
14
+ padding: 20px;
15
+ }
16
+
17
+ #logo-container {
18
+ vertical-align: top;
19
+ }
20
+
21
+ #logo {
22
+ width: 115px;
23
+ height: 171px;
24
+ }
25
+
26
+ #infoline {
27
+ color: #5c6156;
28
+ font-size: 8px;
29
+ }
30
+
31
+ #headline-container {
32
+ margin-right: 15px;
33
+ }
Binary file
@@ -0,0 +1,58 @@
1
+ #! /bin/sh
2
+ #
3
+ # Copyright (c) 2008 Urbacon Ltd.
4
+ #
5
+ # System startup script for the RubyCAS-Server
6
+ #
7
+ # Instructions:
8
+ # 1. Rename this file to 'rubycas-server'
9
+ # 2. Copy it to your '/etc/init.d' directory
10
+ # 3. chmod +x /etc/init.d/rubycas-server
11
+ #
12
+ # chkconfig - 85 15
13
+ # description: Provides single-sign-on authentication for web applications.
14
+ #
15
+ ### BEGIN INIT INFO
16
+ # Provides: rubycas-server
17
+ # Required-Start: $syslog
18
+ # Should-Start:
19
+ # Required-Stop: $syslog
20
+ # Should-Stop:
21
+ # Default-Start: 3 5
22
+ # Default-Stop: 0 1 2 6
23
+ # Description: Start the RubyCAS-Server
24
+ ### END INIT INFO
25
+
26
+ CASSERVER_CTL=rubycas-server-ctl
27
+
28
+ # Gracefully exit if the controller is missing.
29
+ which $CASSERVER_CTL > /dev/null || exit 0
30
+
31
+ # Source config
32
+ . /etc/rc.status
33
+
34
+ rc_reset
35
+ case "$1" in
36
+ start)
37
+ $CASSERVER_CTL start
38
+ rc_status -v
39
+ ;;
40
+ stop)
41
+ $CASSERVER_CTL stop
42
+ rc_status -v
43
+ ;;
44
+ restart)
45
+ $0 stop
46
+ $0 start
47
+ rc_status
48
+ ;;
49
+ status)
50
+ $CASSERVER_CTL status
51
+ rc_status -v
52
+ ;;
53
+ *)
54
+ echo "Usage: $0 {start|stop|status|restart}"
55
+ exit 1
56
+ ;;
57
+ esac
58
+ rc_exit