gunark-rubycas-server 0.8.0.20090227 → 0.8.0.20090427
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.
- data/Manifest.txt +2 -1
- data/{README.txt → README.rdoc} +0 -0
- data/bin/rubycas-server +2 -16
- data/bin/rubycas-server-ctl +1 -15
- data/config.example.yml +132 -58
- data/lib/casserver/authenticators/ldap.rb +10 -1
- data/lib/casserver/authenticators/sql_encrypted.rb +1 -0
- data/lib/casserver/cas.rb +1 -1
- data/lib/casserver/controllers.rb +4 -4
- data/lib/casserver/load_picnic.rb +19 -0
- data/lib/casserver/localization.rb +2 -2
- data/lib/casserver.rb +2 -18
- data/lib/themes/simple/theme.css +1 -1
- data/po/ja_JP/rubycas-server.po +10 -10
- data/po/pt_BR/rubycas-server.po +88 -0
- data/po/ru_RU/rubycas-server.po +0 -3
- metadata +6 -5
- data/lib/casserver/environment.rb +0 -31
data/Manifest.txt
CHANGED
@@ -28,7 +28,7 @@ lib/casserver/authenticators/test.rb
|
|
28
28
|
lib/casserver/cas.rb
|
29
29
|
lib/casserver/conf.rb
|
30
30
|
lib/casserver/controllers.rb
|
31
|
-
lib/casserver/
|
31
|
+
lib/casserver/load_picnic.rb
|
32
32
|
lib/casserver/localization.rb
|
33
33
|
lib/casserver/models.rb
|
34
34
|
lib/casserver/postambles.rb
|
@@ -60,6 +60,7 @@ po/es_ES/rubycas-server.po
|
|
60
60
|
po/fr_FR/rubycas-server.po
|
61
61
|
po/ja_JP/rubycas-server.po
|
62
62
|
po/pl_PL/rubycas-server.po
|
63
|
+
po/pt_BR/rubycas-server.po
|
63
64
|
po/ru_RU/rubycas-server.po
|
64
65
|
po/rubycas-server.pot
|
65
66
|
resources/init.d.sh
|
data/{README.txt → README.rdoc}
RENAMED
File without changes
|
data/bin/rubycas-server
CHANGED
@@ -1,27 +1,13 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
$: << picnic
|
5
|
-
elsif File.exists?(picnic = File.expand_path(File.dirname(File.expand_path(__FILE__))+'/../../picnic/lib'))
|
6
|
-
$: << picnic
|
7
|
-
else
|
8
|
-
require 'rubygems'
|
9
|
-
|
10
|
-
# make things backwards-compatible for rubygems < 0.9.0
|
11
|
-
if respond_to?(:require_gem)
|
12
|
-
puts "WARNING: aliasing gem to require_gem in #{__FILE__} -- you should update your RubyGems system!"
|
13
|
-
alias gem require_gem
|
14
|
-
end
|
15
|
-
|
16
|
-
gem 'picnic'
|
17
|
-
end
|
3
|
+
require File.expand_path(File.dirname(__FILE__)+"/../lib/casserver/load_picnic")
|
18
4
|
|
19
5
|
require 'picnic/cli'
|
20
6
|
|
21
7
|
cli = Picnic::Cli.new(
|
22
8
|
'rubycas-server',
|
23
9
|
:app_module => 'CASServer',
|
24
|
-
:app_file => File.expand_path(File.dirname(
|
10
|
+
:app_file => File.expand_path(File.dirname(__FILE__)+"/../lib/casserver.rb")
|
25
11
|
)
|
26
12
|
|
27
13
|
cli.handle_cli_input
|
data/bin/rubycas-server-ctl
CHANGED
@@ -1,20 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
$: << picnic
|
5
|
-
elsif File.exists?(picnic = File.expand_path(File.dirname(File.expand_path(__FILE__))+'/../../picnic/lib'))
|
6
|
-
$: << picnic
|
7
|
-
else
|
8
|
-
require 'rubygems'
|
9
|
-
|
10
|
-
# make things backwards-compatible for rubygems < 0.9.0
|
11
|
-
if respond_to?(:require_gem)
|
12
|
-
puts "WARNING: aliasing gem to require_gem in #{__FILE__} -- you should update your RubyGems system!"
|
13
|
-
alias gem require_gem
|
14
|
-
end
|
15
|
-
|
16
|
-
gem 'picnic'
|
17
|
-
end
|
3
|
+
require File.expand_path(File.dirname(__FILE__)+"/../lib/casserver/load_picnic")
|
18
4
|
|
19
5
|
require 'picnic/service_control'
|
20
6
|
|
data/config.example.yml
CHANGED
@@ -2,68 +2,143 @@
|
|
2
2
|
# ---> Be sure to use spaces instead of tabs for indentation. YAML is
|
3
3
|
# white-space sensitive!
|
4
4
|
|
5
|
-
##### SERVER
|
6
|
-
|
7
|
-
# Under what environment are you running the CAS server? The following methods
|
8
|
-
# are currently supported:
|
9
|
-
#
|
10
|
-
# webrick -- run as a stand-alone webrick server; this is the default method
|
11
|
-
# mongrel -- run as a stand-alone mongrel server; fast, but you'll need to
|
12
|
-
# install mongrel and run it behind an https reverse proxy like Pound
|
13
|
-
# or Apache 2.2's mod_proxy)
|
14
|
-
# cgi -- slow, but simple to set up if you're already familliar with
|
15
|
-
# deploying CGI scripts
|
16
|
-
# fastcgi -- see http://www.fastcgi.com (e.g. under Apache you can use this with
|
17
|
-
# mod_fastcgi)
|
18
|
-
#
|
19
|
-
# The cgi and fastcgi methods have not been thoroughly tested!
|
20
|
-
# Please report any problems to the authors.
|
21
|
-
#
|
22
|
-
# IMPORTANT: If you use mongrel, you will need to run the server behind a
|
23
|
-
# reverse proxy (Pound, Apache 2.2 with mod_proxy, etc.) since
|
24
|
-
# mongrel does not support SSL/HTTPS. See the RubyCAS-Server install
|
25
|
-
# docs for more info.
|
5
|
+
##### SERVER SETUP ################################################################
|
26
6
|
|
27
|
-
|
7
|
+
# There are several ways to run RubyCAS-Server:
|
8
|
+
#
|
9
|
+
# webrick -- stand-alone WEBrick server; should work out-of-the-box; this is
|
10
|
+
# the default method, but probably not suited for high-traffic usage
|
11
|
+
# mongrel -- stand-alone Mongrel server; fast, but you'll need to install
|
12
|
+
# and compile Mongrel and run it behind an https reverse proxy like
|
13
|
+
# Pound or Apache 2.2's mod_proxy (since Mongrel cannot serve out
|
14
|
+
# over SSL on its own).
|
15
|
+
# passenger -- served out by Apache via the mod_rails/mod_rack module
|
16
|
+
# (see http://www.modrails.com/)
|
17
|
+
#
|
18
|
+
# The following are exampe configurations for each of these three methods:
|
19
|
+
#
|
20
|
+
|
21
|
+
|
22
|
+
###
|
23
|
+
### WEBrick example
|
24
|
+
###
|
25
|
+
# WEBrick is a simple, all-Ruby web server. This is the easiest method for running
|
26
|
+
# RubyCAS-Server. All you need is an SSL certificate (enter its path under the
|
27
|
+
# ssl_cert option). WEBrick is fine for sites with low to medium traffic, but for
|
28
|
+
# high-performance scenarios you may want to look into deploying using Mongrel
|
29
|
+
# or Passenger.
|
28
30
|
|
29
31
|
server: webrick
|
30
32
|
port: 443
|
31
33
|
ssl_cert: /path/to/your/ssl.pem
|
32
34
|
|
33
|
-
# If private key is separate from cert
|
35
|
+
# If your private key is separate from cert
|
36
|
+
|
34
37
|
#ssl_key: /path/to/your/private_key.pem
|
35
38
|
|
39
|
+
|
36
40
|
# By default the login page will be available at the root path
|
37
|
-
# (e.g. https://example.
|
38
|
-
# different path (e.g. https://example.
|
41
|
+
# (e.g. https://login.example.net/). The uri_path option lets you serve it from a
|
42
|
+
# different path (e.g. https://login.example.net/cas).
|
43
|
+
|
39
44
|
#uri_path: /cas
|
40
45
|
|
41
|
-
|
42
|
-
#
|
46
|
+
|
47
|
+
# This lets you bind the server to a specific address. Use 0.0.0.0 to listen on
|
48
|
+
# all available interfaces (this is the default).
|
49
|
+
|
43
50
|
#bind_address: 0.0.0.0
|
44
51
|
|
45
|
-
|
46
|
-
###
|
52
|
+
|
53
|
+
###
|
54
|
+
### Mongrel example
|
55
|
+
###
|
56
|
+
# Mongrel is much faster than WEBrick, but there are two caveats:
|
57
|
+
# 1. Since Mongrel can't serve out encrypted HTTP on its own (and CAS requires this),
|
58
|
+
# you will have to set up a reverse proxy like Pound or Apache's mod_proxy and
|
59
|
+
# route through it requests to the Mongrel server. So for example,
|
60
|
+
# your Pound server will receive all of the requests to RubyCAS-Server on port 443,
|
61
|
+
# and forward them to the Mongrel server listening on port 11011.
|
62
|
+
# 2. Some of Mongrel's components are compiled into native binaries, so if you are
|
63
|
+
# installing on Linux, make sure you have all of the standard build tools
|
64
|
+
# available. The binaries should be automatically compiled for you when you
|
65
|
+
# install the mogrel gem (if you're runnings Windows, pre-compiled
|
66
|
+
# binaries will be downloaded and installed, so don't worry about this).
|
47
67
|
|
48
68
|
#server: mongrel
|
49
69
|
#port: 110011
|
50
70
|
|
51
|
-
# By default the login page will be available at the root path
|
52
|
-
# (e.g. https://example.foo/). The uri_path option lets you serve it from a
|
53
|
-
# different path (e.g. https://example.foo/cas).
|
54
|
-
#uri_path: /cas
|
55
71
|
|
56
72
|
# Bind the server to a specific address. Use 0.0.0.0 to listen on all
|
57
|
-
# available interfaces.
|
58
|
-
#bind_address: 0.0.0.0
|
59
|
-
|
60
|
-
### cgi example (you'll need to serve this via an SSL-capable server like Apache)
|
73
|
+
# available interfaces (this is the default).
|
61
74
|
|
62
|
-
#
|
63
|
-
|
64
|
-
### fastcgi example (you'll need to serve this via an SSL-capable server like Apache)
|
75
|
+
#bind_address: 0.0.0.0
|
65
76
|
|
66
|
-
|
77
|
+
### Reverse proxy configuration examples
|
78
|
+
# If you're using mod_proxy, your Apache vhost config should look something like this:
|
79
|
+
#
|
80
|
+
# Listen 443
|
81
|
+
# <VirtualHost *:443>
|
82
|
+
# ServerAdmin admin@example.net
|
83
|
+
# ServerName login.example.net
|
84
|
+
#
|
85
|
+
# SSLEngine On
|
86
|
+
# SSLCertificateFile /etc/apache2/ssl.crt/example.pem
|
87
|
+
#
|
88
|
+
# # Don't do forward proxying, we only want reverse proxying
|
89
|
+
# ProxyRequests Off
|
90
|
+
#
|
91
|
+
# <Proxy balancer://rubycas>
|
92
|
+
# Order allow,deny
|
93
|
+
# Allow from all
|
94
|
+
# BalancerMember http://127.0.0.1:11011
|
95
|
+
# </Proxy>
|
96
|
+
# </VirtualHost>
|
97
|
+
#
|
98
|
+
# For Pound, the config should be something like:
|
99
|
+
#
|
100
|
+
# ListenHTTPS
|
101
|
+
# Address 0.0.0.0
|
102
|
+
# Port 11011
|
103
|
+
# Cert "/etc/ssl/example.pem"
|
104
|
+
#
|
105
|
+
# Service
|
106
|
+
# BackEnd
|
107
|
+
# Address localhost
|
108
|
+
# Port 443
|
109
|
+
# End
|
110
|
+
# End
|
111
|
+
# End
|
112
|
+
|
113
|
+
|
114
|
+
###
|
115
|
+
### Phusion Passenger (running under Apache configured for SSL)
|
116
|
+
###
|
117
|
+
|
118
|
+
# No additional configuration is requried to run RubyCAS-Server under
|
119
|
+
# passsenger. Just follow the normal instructions for a Passenger app
|
120
|
+
# (see http://www.modrails.com/).
|
121
|
+
#
|
122
|
+
# Here's an example Apache vhost config for RubyCAS-Server and Passenger:
|
123
|
+
#
|
124
|
+
# Listen 442
|
125
|
+
# <VirtualHost *:442>
|
126
|
+
# ServerAdmin admin@example.net
|
127
|
+
# ServerName login.example.net
|
128
|
+
#
|
129
|
+
# SSLEngine On
|
130
|
+
# SSLCertificateFile /etc/apache2/ssl.crt/example.pem
|
131
|
+
#
|
132
|
+
# RailsAutoDetect off
|
133
|
+
#
|
134
|
+
# DocumentRoot /usr/lib/ruby/gems/1.8/gems/rubycas-server-0.8.0/public
|
135
|
+
#
|
136
|
+
# <Directory "/usr/lib/ruby/gems/1.8/gems/rubycas-server-0.8.0/public">
|
137
|
+
# AllowOverride all
|
138
|
+
# Allow from all
|
139
|
+
# </Directory>
|
140
|
+
# </VirtualHost>
|
141
|
+
#
|
67
142
|
|
68
143
|
|
69
144
|
##### DATABASE #################################################################
|
@@ -85,6 +160,7 @@ database:
|
|
85
160
|
password:
|
86
161
|
host: localhost
|
87
162
|
|
163
|
+
|
88
164
|
#
|
89
165
|
# Instead of MySQL you can use SQLite3, PostgreSQL, MSSQL, or anything else
|
90
166
|
# supported by ActiveRecord.
|
@@ -92,7 +168,7 @@ database:
|
|
92
168
|
# With SQLite3 (which does not require a separate database server), your
|
93
169
|
# configuration would look something like the following (don't forget to install
|
94
170
|
# the sqlite3-ruby gem beforehand!):
|
95
|
-
|
171
|
+
|
96
172
|
#database:
|
97
173
|
# adapter: sqlite3
|
98
174
|
# dbfile: /var/lib/casserver.db
|
@@ -102,17 +178,17 @@ database:
|
|
102
178
|
|
103
179
|
# Configure how username/passwords are validated.
|
104
180
|
#
|
105
|
-
# !!! YOU MUST CONFIGURE ONE OF THESE AUTHENTICATION METHODS !!!
|
181
|
+
# !!! YOU MUST CONFIGURE AT LEAST ONE OF THESE AUTHENTICATION METHODS !!!
|
106
182
|
#
|
107
|
-
#
|
108
|
-
# SQL, ActiveDirectory, and
|
109
|
-
# relatively easy to write your own custom Authenticator class.
|
183
|
+
# There are several built-in methods for authentication:
|
184
|
+
# SQL, ActiveDirectory, LDAP, and GoogleAccounts. If none of these work for you,
|
185
|
+
# it is relatively easy to write your own custom Authenticator class (see below).
|
110
186
|
#
|
111
187
|
# === SQL Authentication =======================================================
|
112
188
|
#
|
113
189
|
# The simplest method is to validate against a SQL database. This assumes
|
114
190
|
# that all of your users are stored in a table that has a 'username' column
|
115
|
-
# and a 'password' column. When the user logs in, CAS
|
191
|
+
# and a 'password' column. When the user logs in, CAS connects to this database
|
116
192
|
# and looks for a matching username/password in the users table. If a matching
|
117
193
|
# username and password is found, authentication is successful.
|
118
194
|
#
|
@@ -138,7 +214,7 @@ database:
|
|
138
214
|
# password_column: password
|
139
215
|
#
|
140
216
|
# When replying to a CAS client's validation request, the server will normally
|
141
|
-
# provide the client with the authenticated user's username. However it is
|
217
|
+
# provide the client with the authenticated user's username. However it is
|
142
218
|
# possible for the server to provide the client with additional attributes.
|
143
219
|
# You can configure the SQL authenticator to provide data from additional
|
144
220
|
# columns in the users table by listing the names of the columns under the
|
@@ -178,10 +254,8 @@ database:
|
|
178
254
|
# For example:
|
179
255
|
#
|
180
256
|
#authenticator:
|
181
|
-
# -
|
182
|
-
#
|
183
|
-
# -
|
184
|
-
# class: CASServer::Authenticators::SQL
|
257
|
+
# - class: CASServer::Authenticators::Google
|
258
|
+
# - class: CASServer::Authenticators::SQL
|
185
259
|
# database:
|
186
260
|
# adapter: mysql
|
187
261
|
# database: some_database_with_users_table
|
@@ -196,16 +270,16 @@ database:
|
|
196
270
|
# === ActiveDirectory Authentication ===========================================
|
197
271
|
#
|
198
272
|
# This method authenticates against Microsoft's Active Directory using LDAP.
|
199
|
-
# You must
|
273
|
+
# You must configure the ActiveDirectory server, and base DN. The port number
|
200
274
|
# and LDAP filter are optional. You must also enter a CN and password
|
201
|
-
# for
|
202
|
-
#
|
203
|
-
#
|
275
|
+
# for a special "authenticator" user. This account is used to log in to
|
276
|
+
# the ActiveDirectory server and search LDAP. This does not have to be an
|
277
|
+
# administrative account -- it only has to be able to search for other
|
204
278
|
# users.
|
205
279
|
#
|
206
280
|
# Note that the auth_user parameter must be the user's CN (Common Name).
|
207
|
-
# In Active Directory, the CN is genarally the user's full name, which is
|
208
|
-
#
|
281
|
+
# In Active Directory, the CN is genarally the user's full name, which is usually
|
282
|
+
# NOT the same as their username (sAMAccountName).
|
209
283
|
#
|
210
284
|
# For example:
|
211
285
|
#
|
@@ -110,6 +110,8 @@ class CASServer::Authenticators::LDAP < CASServer::Authenticators::Base
|
|
110
110
|
unless @options[:ldap][:filter].blank?
|
111
111
|
filter &= Net::LDAP::Filter.construct(@options[:ldap][:filter])
|
112
112
|
end
|
113
|
+
|
114
|
+
filter
|
113
115
|
end
|
114
116
|
|
115
117
|
# Finds the user based on the user_filter (this is called after authentication).
|
@@ -124,7 +126,14 @@ class CASServer::Authenticators::LDAP < CASServer::Authenticators::Base
|
|
124
126
|
extra_attributes_to_extract.each do |attr|
|
125
127
|
v = !ldap_entry[attr].blank? && ldap_entry[attr].first
|
126
128
|
if v
|
127
|
-
|
129
|
+
if ldap_entry[attr].kind_of?(Array)
|
130
|
+
@extra_attributes[attr] = []
|
131
|
+
ldap_entry[attr].each do |a|
|
132
|
+
@extra_attributes[attr] << a
|
133
|
+
end
|
134
|
+
else
|
135
|
+
@extra_attributes[attr] = v.to_s
|
136
|
+
end
|
128
137
|
end
|
129
138
|
end
|
130
139
|
|
data/lib/casserver/cas.rb
CHANGED
@@ -292,7 +292,7 @@ module CASServer::Controllers
|
|
292
292
|
|
293
293
|
@username = st.username if @success
|
294
294
|
|
295
|
-
@status = response_status_from_error(@error) if @error
|
295
|
+
@status = CASServer::Controllers.response_status_from_error(@error) if @error
|
296
296
|
|
297
297
|
render :validate
|
298
298
|
end
|
@@ -325,7 +325,7 @@ module CASServer::Controllers
|
|
325
325
|
@extra_attributes = st.ticket_granting_ticket.extra_attributes || {}
|
326
326
|
end
|
327
327
|
|
328
|
-
@status = response_status_from_error(@error) if @error
|
328
|
+
@status = CASServer::Controllers.response_status_from_error(@error) if @error
|
329
329
|
|
330
330
|
render :service_validate
|
331
331
|
end
|
@@ -367,7 +367,7 @@ module CASServer::Controllers
|
|
367
367
|
@extra_attributes = t.ticket_granting_ticket.extra_attributes || {}
|
368
368
|
end
|
369
369
|
|
370
|
-
@status = response_status_from_error(@error) if @error
|
370
|
+
@status = CASServer::Controllers.response_status_from_error(@error) if @error
|
371
371
|
|
372
372
|
render :proxy_validate
|
373
373
|
end
|
@@ -391,7 +391,7 @@ module CASServer::Controllers
|
|
391
391
|
@pt = generate_proxy_ticket(@target_service, pgt)
|
392
392
|
end
|
393
393
|
|
394
|
-
@status = response_status_from_error(@error) if @error
|
394
|
+
@status = CASServer::Controllers.response_status_from_error(@error) if @error
|
395
395
|
|
396
396
|
render :proxy
|
397
397
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
if File.exists?(picnic = File.expand_path(File.dirname(File.expand_path(__FILE__))+'/../../vendor/picnic/lib'))
|
2
|
+
puts "Loading picnic from #{picnic.inspect}..."
|
3
|
+
$: << picnic
|
4
|
+
elsif File.exists?(picnic = File.expand_path(File.dirname(File.expand_path(__FILE__))+'/../../../picnic/lib'))
|
5
|
+
puts "Loading picnic from #{picnic.inspect}..."
|
6
|
+
$: << picnic
|
7
|
+
else
|
8
|
+
puts "Loading picnic from rubygems..."
|
9
|
+
require 'rubygems'
|
10
|
+
|
11
|
+
begin
|
12
|
+
# Try to load dev version of picnic if available (for example 'zuk-picnic' from Github)
|
13
|
+
gem /^.*?-picnic$/
|
14
|
+
rescue Gem::LoadError
|
15
|
+
gem 'picnic'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
|
@@ -3,7 +3,7 @@ require "gettext/cgi"
|
|
3
3
|
|
4
4
|
module CASServer
|
5
5
|
include GetText
|
6
|
-
bindtextdomain("rubycas-server", :path => File.join(File.dirname(File.expand_path(__FILE__)), "
|
6
|
+
bindtextdomain("rubycas-server", :path => File.join(File.dirname(File.expand_path(__FILE__)), "../../locale"))
|
7
7
|
|
8
8
|
def service(*a)
|
9
9
|
GetText.locale = determine_locale
|
@@ -57,6 +57,6 @@ module CASServer
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def available_locales
|
60
|
-
(Dir.glob(File.join(File.dirname(File.expand_path(__FILE__)), "
|
60
|
+
(Dir.glob(File.join(File.dirname(File.expand_path(__FILE__)), "../../locale/[a-z]*")).map{|path| File.basename(path)} << "en").uniq.collect{|l| l.gsub('_','-')}
|
61
61
|
end
|
62
62
|
end
|
data/lib/casserver.rb
CHANGED
@@ -1,24 +1,8 @@
|
|
1
1
|
unless Object.const_defined?(:Picnic)
|
2
2
|
$APP_NAME ||= 'rubycas-server'
|
3
3
|
$APP_ROOT ||= File.expand_path(File.dirname(__FILE__)+'/..')
|
4
|
-
|
5
|
-
|
6
|
-
$: << picnic
|
7
|
-
elsif File.exists?(picnic = File.expand_path(File.dirname(File.expand_path(__FILE__))+'/../../picnic/lib'))
|
8
|
-
$: << picnic
|
9
|
-
else
|
10
|
-
require 'rubygems'
|
11
|
-
|
12
|
-
# make things backwards-compatible for rubygems < 0.9.0
|
13
|
-
if respond_to?(:require_gem)
|
14
|
-
puts "WARNING: aliasing gem to require_gem in #{__FILE__} -- you should update your RubyGems system!"
|
15
|
-
alias gem require_gem
|
16
|
-
end
|
17
|
-
|
18
|
-
gem 'picnic'
|
19
|
-
end
|
20
|
-
|
21
|
-
require 'picnic'
|
4
|
+
|
5
|
+
require 'casserver/load_picnic'
|
22
6
|
end
|
23
7
|
|
24
8
|
require 'yaml'
|
data/lib/themes/simple/theme.css
CHANGED
data/po/ja_JP/rubycas-server.po
CHANGED
@@ -25,47 +25,47 @@ msgstr ""
|
|
25
25
|
msgid ""
|
26
26
|
"You are currently logged in as '%s'. If this is not you, please log in below."
|
27
27
|
msgstr ""
|
28
|
-
"
|
28
|
+
"'%s'としてログインしています。違うユーザーでログインするには下に入力してください。"
|
29
29
|
|
30
30
|
#: lib/casserver/controllers.rb:37
|
31
31
|
msgid ""
|
32
32
|
"The client and server are unable to negotiate authentication. Please try "
|
33
33
|
"logging in again later."
|
34
34
|
msgstr ""
|
35
|
-
"
|
35
|
+
"クライアントとサーバー間で認証ができませんでした。しばらくしてから再度ログインしてください。"
|
36
36
|
|
37
37
|
#: lib/casserver/controllers.rb:54
|
38
38
|
msgid ""
|
39
39
|
"The server cannot fulfill this gateway request because no service parameter "
|
40
40
|
"was given."
|
41
41
|
msgstr ""
|
42
|
-
"
|
42
|
+
"サービスパラメーターが指定されていないので、サーバーはゲートウェイリクエストを満たす事ができません。"
|
43
43
|
|
44
44
|
#: lib/casserver/controllers.rb:59 lib/casserver/controllers.rb:195
|
45
45
|
msgid ""
|
46
46
|
"The target service your browser supplied appears to be invalid. Please "
|
47
47
|
"contact your system administrator for help."
|
48
48
|
msgstr ""
|
49
|
-
"
|
49
|
+
"ブラウザが示す対象サービスは無効のようです。システム管理者に連絡してください。"
|
50
50
|
|
51
51
|
#: lib/casserver/controllers.rb:88
|
52
52
|
msgid ""
|
53
53
|
"Could not guess the CAS login URI. Please supply a submitToURI parameter "
|
54
54
|
"with your request."
|
55
55
|
msgstr ""
|
56
|
-
"
|
56
|
+
"CASのURIを推測することができませんでした。リクエストにsubmitToURIパラメータを指定してください。"
|
57
57
|
|
58
58
|
#: lib/casserver/controllers.rb:184
|
59
59
|
msgid "You have successfully logged in."
|
60
|
-
msgstr ""
|
60
|
+
msgstr "ログインしました"
|
61
61
|
|
62
62
|
#: lib/casserver/controllers.rb:200
|
63
63
|
msgid "Incorrect username or password."
|
64
|
-
msgstr "
|
64
|
+
msgstr "ユーザー名またはパスワードが間違っています"
|
65
65
|
|
66
66
|
#: lib/casserver/controllers.rb:259
|
67
67
|
msgid "You have successfully logged out."
|
68
|
-
msgstr "
|
68
|
+
msgstr "ログアウトしました。"
|
69
69
|
|
70
70
|
#: lib/casserver/controllers.rb:262
|
71
71
|
msgid " Please click on the following link to continue:"
|
@@ -73,11 +73,11 @@ msgstr " 継続するには、以下のリンクをクリックしてくださ
|
|
73
73
|
|
74
74
|
#: lib/casserver/controllers.rb:412
|
75
75
|
msgid "To generate a login ticket, you must make a POST request."
|
76
|
-
msgstr "
|
76
|
+
msgstr "ログインチケットを発行するには、POSTリクエストを送る必要があります。"
|
77
77
|
|
78
78
|
#: lib/casserver/views.rb:41 lib/casserver/views.rb:111
|
79
79
|
msgid " Central Login"
|
80
|
-
msgstr "
|
80
|
+
msgstr " 統合ログイン"
|
81
81
|
|
82
82
|
#: lib/casserver/views.rb:71
|
83
83
|
msgid "Username"
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# Brazilian Portuguese translations for RubyCAS-Server package
|
2
|
+
# Traduções em Português do Brasil para o pacote RubyCAS-Server.
|
3
|
+
# Copyright (C) 2008 THE RubyCAS-Server'S COPYRIGHT HOLDER
|
4
|
+
# This file is distributed under the same license as the RubyCAS-Server package.
|
5
|
+
# Kivanio Barbosa <kivanio@gmail.com>, 2009.
|
6
|
+
#
|
7
|
+
msgid ""
|
8
|
+
msgstr ""
|
9
|
+
"Project-Id-Version: rubycas-server \n"
|
10
|
+
"POT-Creation-Date: 2009-03-17 11:43-0500\n"
|
11
|
+
"PO-Revision-Date: 2009-03-17 20:55+0200\n"
|
12
|
+
"Last-Translator: Kivanio Barbosa <kivanio@gmail.com>\n"
|
13
|
+
"Language-Team: Brazil\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=2; plural=(n > 1);\n"
|
18
|
+
|
19
|
+
#: lib/casserver/controllers.rb:32
|
20
|
+
msgid ""
|
21
|
+
"You are currently logged in as '%s'. If this is not you, please log in below."
|
22
|
+
msgstr "Você está logado como '%s'. Se este não for você, Por favor, faça o login a baixo."
|
23
|
+
|
24
|
+
#: lib/casserver/controllers.rb:37
|
25
|
+
msgid ""
|
26
|
+
"The client and server are unable to negotiate authentication. Please try "
|
27
|
+
"logging in again later."
|
28
|
+
msgstr ""
|
29
|
+
"O cliente e o servidor não puderam efetuar a autenticação. Por favor, "
|
30
|
+
"tente novamente mais tarde."
|
31
|
+
|
32
|
+
#: lib/casserver/controllers.rb:54
|
33
|
+
msgid ""
|
34
|
+
"The server cannot fulfill this gateway request because no service parameter "
|
35
|
+
"was given."
|
36
|
+
msgstr "O servidor não pode completar a solicitação porque não foi enviado o paramêtro do serviço."
|
37
|
+
|
38
|
+
#: lib/casserver/controllers.rb:59 lib/casserver/controllers.rb:195
|
39
|
+
msgid ""
|
40
|
+
"The target service your browser supplied appears to be invalid. Please "
|
41
|
+
"contact your system administrator for help."
|
42
|
+
msgstr ""
|
43
|
+
"O seu navegador está aparentemente com problemas. Por favor, "
|
44
|
+
"contate o administrador do sistema para obter ajuda."
|
45
|
+
|
46
|
+
#: lib/casserver/controllers.rb:88
|
47
|
+
msgid ""
|
48
|
+
"Could not guess the CAS login URI. Please supply a submitToURI parameter "
|
49
|
+
"with your request."
|
50
|
+
msgstr ""
|
51
|
+
"Não encontramos a URI de acesso ao CAS. Por favor, informe corretamente no submitToURI "
|
52
|
+
"com sua solicitação."
|
53
|
+
|
54
|
+
#: lib/casserver/controllers.rb:184
|
55
|
+
msgid "You have successfully logged in."
|
56
|
+
msgstr "Login efetuado com sucesso."
|
57
|
+
|
58
|
+
#: lib/casserver/controllers.rb:200
|
59
|
+
msgid "Incorrect username or password."
|
60
|
+
msgstr "Usuário ou Senha está incorreto."
|
61
|
+
|
62
|
+
#: lib/casserver/controllers.rb:259
|
63
|
+
msgid "You have successfully logged out."
|
64
|
+
msgstr "Você saiu do sistema com sucesso."
|
65
|
+
|
66
|
+
#: lib/casserver/controllers.rb:262
|
67
|
+
msgid " Please click on the following link to continue:"
|
68
|
+
msgstr " Por favor, clique no seguinte link para continuar:"
|
69
|
+
|
70
|
+
#: lib/casserver/controllers.rb:412
|
71
|
+
msgid "To generate a login ticket, you must make a POST request."
|
72
|
+
msgstr "Para gerar um ticket de acceso, você deve fazer uma requisição via POST."
|
73
|
+
|
74
|
+
#: lib/casserver/views.rb:41 lib/casserver/views.rb:111
|
75
|
+
msgid " Central Login"
|
76
|
+
msgstr " Central de Autenticação"
|
77
|
+
|
78
|
+
#: lib/casserver/views.rb:71
|
79
|
+
msgid "Username"
|
80
|
+
msgstr "Usuário"
|
81
|
+
|
82
|
+
#: lib/casserver/views.rb:80
|
83
|
+
msgid "Password"
|
84
|
+
msgstr "Senha"
|
85
|
+
|
86
|
+
#: lib/casserver/views.rb:92
|
87
|
+
msgid "LOGIN"
|
88
|
+
msgstr "ENTRAR"
|
data/po/ru_RU/rubycas-server.po
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gunark-rubycas-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.0.
|
4
|
+
version: 0.8.0.20090427
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Zukowski
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-04-27 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -76,14 +76,14 @@ extra_rdoc_files:
|
|
76
76
|
- LICENSE.txt
|
77
77
|
- Manifest.txt
|
78
78
|
- PostInstall.txt
|
79
|
-
- README.
|
79
|
+
- README.rdoc
|
80
80
|
files:
|
81
81
|
- CHANGELOG.txt
|
82
82
|
- History.txt
|
83
83
|
- LICENSE.txt
|
84
84
|
- Manifest.txt
|
85
85
|
- PostInstall.txt
|
86
|
-
- README.
|
86
|
+
- README.rdoc
|
87
87
|
- Rakefile
|
88
88
|
- bin/rubycas-server
|
89
89
|
- bin/rubycas-server-ctl
|
@@ -108,7 +108,7 @@ files:
|
|
108
108
|
- lib/casserver/cas.rb
|
109
109
|
- lib/casserver/conf.rb
|
110
110
|
- lib/casserver/controllers.rb
|
111
|
-
- lib/casserver/
|
111
|
+
- lib/casserver/load_picnic.rb
|
112
112
|
- lib/casserver/localization.rb
|
113
113
|
- lib/casserver/models.rb
|
114
114
|
- lib/casserver/postambles.rb
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- po/fr_FR/rubycas-server.po
|
135
135
|
- po/ja_JP/rubycas-server.po
|
136
136
|
- po/pl_PL/rubycas-server.po
|
137
|
+
- po/pt_BR/rubycas-server.po
|
137
138
|
- po/ru_RU/rubycas-server.po
|
138
139
|
- po/rubycas-server.pot
|
139
140
|
- resources/init.d.sh
|
@@ -1,31 +0,0 @@
|
|
1
|
-
$: << File.dirname(File.expand_path(__FILE__))
|
2
|
-
|
3
|
-
# Try to load local version of Picnic if possible (for development purposes)
|
4
|
-
alt_picic_paths = []
|
5
|
-
alt_picic_paths << File.dirname(File.expand_path(__FILE__))+"/../../../picnic/lib"
|
6
|
-
alt_picic_paths << File.dirname(File.expand_path(__FILE__))+"/../../vendor/picnic/lib"
|
7
|
-
|
8
|
-
begin
|
9
|
-
require 'active_record'
|
10
|
-
rescue LoadError
|
11
|
-
require 'rubygems'
|
12
|
-
require 'active_record'
|
13
|
-
end
|
14
|
-
|
15
|
-
if alt_picic_paths.any?{|path| File.exists? "#{path}/picnic.rb" }
|
16
|
-
alt_picic_paths.each{|path| $: << path}
|
17
|
-
require 'picnic'
|
18
|
-
else
|
19
|
-
require 'rubygems'
|
20
|
-
|
21
|
-
# make things backwards-compatible for rubygems < 0.9.0
|
22
|
-
if respond_to?(:require_gem)
|
23
|
-
puts "WARNING: aliasing gem to require_gem in #{__FILE__} -- you should update your RubyGems system!"
|
24
|
-
alias gem require_gem
|
25
|
-
end
|
26
|
-
|
27
|
-
require 'picnic'
|
28
|
-
end
|
29
|
-
|
30
|
-
# used for serializing user extra_attributes (see #service_validate in views.rb)
|
31
|
-
require 'yaml'
|