ucb_ldap 1.3.2 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
 
2
2
  module UCB
3
3
  module LDAP
4
+ ##
4
5
  # = UCB::LDAP::Service
5
6
  #
6
7
  # This class models a person's service entries in the UCB LDAP directory.
@@ -19,6 +20,7 @@ module UCB
19
20
  #
20
21
  class Service < Entry
21
22
  @entity_name = 'personService'
23
+ @tree_base = 'ou=services,dc=berkeley,dc=edu'
22
24
 
23
25
  def eligible_by
24
26
  berkeleyEduPersonServiceEligibleBy
@@ -93,6 +95,7 @@ module UCB
93
95
  end
94
96
 
95
97
  class << self
98
+ ##
96
99
  # Returns an Array of JobAppointment for <tt>uid</tt>, sorted by
97
100
  # record_number().
98
101
  # Returns an empty Array ([]) if nothing is found.
@@ -102,8 +105,7 @@ module UCB
102
105
  filter = Net::LDAP::Filter.eq("objectclass", 'berkeleyEduPersonService')
103
106
  search(:base => base, :filter => filter)
104
107
  end
105
-
106
108
  end
107
109
  end
108
110
  end
109
- end
111
+ end
data/schema/schema.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Schema File For: ldap.berkeley.edu
3
- # Last Generated: Thu Jun 12 08:45:30 2008
3
+ # Last Generated: Mon Jun 22 16:41:39 2009
4
4
  #
5
5
  # This file contains information about the following part of the tree:
6
6
  # namespaceName
@@ -17,10 +17,143 @@
17
17
  # honorific
18
18
  # generationalTitle
19
19
  # salutation
20
+ # calnetSyncTimeProperty
21
+ # calnetMaxUidProperty
22
+ # casServiceRegistry
20
23
  #
21
- # Please address questions or problems to calnet-admin@lists.berkeley.edu
24
+ # Please address questions or problems to calnet-idm@lists.berkeley.edu
22
25
  #
23
26
  ---
27
+ calnetMaxUidProperty:
28
+ attributes:
29
+ cn:
30
+ aliases:
31
+ - commonName
32
+ description: 'Standard LDAP attribute type'
33
+ multi: true
34
+ objectClass: berkeleyEduCalNetMaxUid
35
+ required: true
36
+ syntax: string
37
+ objectClass:
38
+ description: 'Standard LDAP attribute type'
39
+ multi: true
40
+ objectClass: top
41
+ required: true
42
+ syntax: string
43
+ uid:
44
+ aliases:
45
+ - userid
46
+ description: 'Standard LDAP attribute type'
47
+ multi: true
48
+ objectClass: berkeleyEduCalNetMaxUid
49
+ required: true
50
+ syntax: string
51
+ objectClasses:
52
+ - top
53
+ - berkeleyEduCalNetMaxUid
54
+ uniqueObjectClass: berkeleyEduCalNetMaxUid
55
+ calnetSyncTimeProperty:
56
+ attributes:
57
+ berkeleyEduDateTime:
58
+ description: Date-Time
59
+ multi: false
60
+ objectClass: berkeleyEduCalNetLastSyncTime
61
+ required: true
62
+ syntax: timestamp
63
+ cn:
64
+ aliases:
65
+ - commonName
66
+ description: 'Standard LDAP attribute type'
67
+ multi: true
68
+ objectClass: berkeleyEduCalNetLastSyncTime
69
+ required: true
70
+ syntax: string
71
+ objectClass:
72
+ description: 'Standard LDAP attribute type'
73
+ multi: true
74
+ objectClass: top
75
+ required: true
76
+ syntax: string
77
+ objectClasses:
78
+ - top
79
+ - berkeleyEduCalNetLastSyncTime
80
+ uniqueObjectClass: berkeleyEduCalNetLastSyncTime
81
+ casServiceRegistry:
82
+ attributes:
83
+ berkeleyEduCasServiceAllowedAttributes:
84
+ description: 'CAS Service Registration - LDAP Attributes that can be returned to the Service'
85
+ multi: true
86
+ objectClass: berkeleyEduCasServiceRegistration
87
+ required: false
88
+ syntax: string
89
+ berkeleyEduCasServiceAllowedToProxy:
90
+ description: 'CAS Service Registration - Is the Service allowed to proxy?'
91
+ multi: false
92
+ objectClass: berkeleyEduCasServiceRegistration
93
+ required: false
94
+ syntax: boolean
95
+ berkeleyEduCasServiceAnnonymousAccess:
96
+ description: 'CAS Service Registration - Does Service allow anonymous access?'
97
+ multi: false
98
+ objectClass: berkeleyEduCasServiceRegistration
99
+ required: false
100
+ syntax: boolean
101
+ berkeleyEduCasServiceDescription:
102
+ description: 'CAS Service Registration - Description of the Service'
103
+ multi: false
104
+ objectClass: berkeleyEduCasServiceRegistration
105
+ required: true
106
+ syntax: string
107
+ berkeleyEduCasServiceEnabled:
108
+ description: 'CAS Service Registration - Is the Service enabled?'
109
+ multi: false
110
+ objectClass: berkeleyEduCasServiceRegistration
111
+ required: true
112
+ syntax: boolean
113
+ berkeleyEduCasServiceSsoEnabled:
114
+ description: 'CAS Service Registration - Is the Service allowed to use SSO?'
115
+ multi: false
116
+ objectClass: berkeleyEduCasServiceRegistration
117
+ required: false
118
+ syntax: boolean
119
+ berkeleyEduCasServiceTheme:
120
+ description: 'CAS Service Registration - Theme used for the Service'
121
+ multi: false
122
+ objectClass: berkeleyEduCasServiceRegistration
123
+ required: false
124
+ syntax: string
125
+ berkeleyEduCasServiceUrl:
126
+ description: 'CAS Service Registration - Service URL'
127
+ multi: false
128
+ objectClass: berkeleyEduCasServiceRegistration
129
+ required: true
130
+ syntax: ~
131
+ cn:
132
+ aliases:
133
+ - commonName
134
+ description: 'Standard LDAP attribute type'
135
+ multi: true
136
+ objectClass: berkeleyEduCasServiceRegistration
137
+ required: true
138
+ syntax: string
139
+ objectClass:
140
+ description: 'Standard LDAP attribute type'
141
+ multi: true
142
+ objectClass: top
143
+ required: true
144
+ syntax: string
145
+ uid:
146
+ aliases:
147
+ - userid
148
+ description: 'Standard LDAP attribute type'
149
+ multi: true
150
+ objectClass: berkeleyEduCasServiceRegistration
151
+ required: true
152
+ syntax: string
153
+ objectClasses:
154
+ - top
155
+ - berkeleyEduCasServiceRegistration
156
+ uniqueObjectClass: berkeleyEduCasServiceRegistration
24
157
  generationalTitle:
25
158
  attributes:
26
159
  cn:
data/ucb_ldap.gemspec CHANGED
@@ -2,36 +2,32 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ucb_ldap}
5
- s.version = "1.3.2"
5
+ s.version = "1.4.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Steven Hansen, Steve Downey, Lucas Rockwell"]
9
- s.date = %q{2009-02-09}
9
+ s.date = %q{2010-08-03}
10
10
  s.description = %q{Convenience classes for interacing with UCB's LDAP directory}
11
11
  s.email = %q{runner@berkeley.edu}
12
12
  s.extra_rdoc_files = ["README", "lib/person/adv_con_person.rb", "lib/person/affiliation_methods.rb", "lib/person/generic_attributes.rb", "lib/ucb_ldap.rb", "lib/ucb_ldap_address.rb", "lib/ucb_ldap_affiliation.rb", "lib/ucb_ldap_entry.rb", "lib/ucb_ldap_exceptions.rb", "lib/ucb_ldap_namespace.rb", "lib/ucb_ldap_org.rb", "lib/ucb_ldap_person.rb", "lib/ucb_ldap_person_job_appointment.rb", "lib/ucb_ldap_schema.rb", "lib/ucb_ldap_schema_attribute.rb", "lib/ucb_ldap_service.rb", "lib/ucb_ldap_student_term.rb"]
13
- s.files = ["CHANGELOG", "Manifest", "README", "Rakefile", "TODO", "init.rb", "lib/person/adv_con_person.rb", "lib/person/affiliation_methods.rb", "lib/person/generic_attributes.rb", "lib/ucb_ldap.rb", "lib/ucb_ldap_address.rb", "lib/ucb_ldap_affiliation.rb", "lib/ucb_ldap_entry.rb", "lib/ucb_ldap_exceptions.rb", "lib/ucb_ldap_namespace.rb", "lib/ucb_ldap_org.rb", "lib/ucb_ldap_person.rb", "lib/ucb_ldap_person_job_appointment.rb", "lib/ucb_ldap_schema.rb", "lib/ucb_ldap_schema_attribute.rb", "lib/ucb_ldap_service.rb", "lib/ucb_ldap_student_term.rb", "schema/schema.yml", "version.yml", "ucb_ldap.gemspec"]
14
- s.has_rdoc = true
13
+ s.files = ["CHANGELOG", "Manifest", "README", "Rakefile", "TODO", "lib/person/adv_con_person.rb", "lib/person/affiliation_methods.rb", "lib/person/generic_attributes.rb", "lib/ucb_ldap.rb", "lib/ucb_ldap_address.rb", "lib/ucb_ldap_affiliation.rb", "lib/ucb_ldap_entry.rb", "lib/ucb_ldap_exceptions.rb", "lib/ucb_ldap_namespace.rb", "lib/ucb_ldap_org.rb", "lib/ucb_ldap_person.rb", "lib/ucb_ldap_person_job_appointment.rb", "lib/ucb_ldap_schema.rb", "lib/ucb_ldap_schema_attribute.rb", "lib/ucb_ldap_service.rb", "lib/ucb_ldap_student_term.rb", "schema/schema.yml", "ucb_ldap.gemspec", "version.yml"]
15
14
  s.homepage = %q{http://ucbrb.rubyforge.org/ucb_ldap}
16
15
  s.rdoc_options = ["-o doc --inline-source -T hanna lib/*.rb"]
17
16
  s.require_paths = ["lib"]
18
17
  s.rubyforge_project = %q{ucbrb}
19
- s.rubygems_version = %q{1.3.1}
18
+ s.rubygems_version = %q{1.3.7}
20
19
  s.summary = %q{Convenience classes for interacing with UCB's LDAP directory}
21
20
 
22
21
  if s.respond_to? :specification_version then
23
22
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
- s.specification_version = 2
23
+ s.specification_version = 3
25
24
 
26
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
27
- s.add_runtime_dependency(%q<ruby-net-ldap>, [">= 0", "= 0.0.4"])
28
- s.add_development_dependency(%q<echoe>, [">= 0"])
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
+ s.add_runtime_dependency(%q<ruby-net-ldap>, [">= 0.0.4"])
29
27
  else
30
- s.add_dependency(%q<ruby-net-ldap>, [">= 0", "= 0.0.4"])
31
- s.add_dependency(%q<echoe>, [">= 0"])
28
+ s.add_dependency(%q<ruby-net-ldap>, [">= 0.0.4"])
32
29
  end
33
30
  else
34
- s.add_dependency(%q<ruby-net-ldap>, [">= 0", "= 0.0.4"])
35
- s.add_dependency(%q<echoe>, [">= 0"])
31
+ s.add_dependency(%q<ruby-net-ldap>, [">= 0.0.4"])
36
32
  end
37
33
  end
data/version.yml CHANGED
@@ -1 +1 @@
1
- version: 'rel-1.3.2'
1
+ version: 'rel-1.4.1'
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ucb_ldap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ hash: 3
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 4
9
+ - 2
10
+ version: 1.4.2
5
11
  platform: ruby
6
12
  authors:
7
13
  - Steven Hansen, Steve Downey, Lucas Rockwell
@@ -9,32 +15,25 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-02-09 00:00:00 -08:00
18
+ date: 2010-08-03 00:00:00 -07:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: ruby-net-ldap
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
23
- version: "0"
24
- - - "="
25
- - !ruby/object:Gem::Version
29
+ hash: 23
30
+ segments:
31
+ - 0
32
+ - 0
33
+ - 4
26
34
  version: 0.0.4
27
- version:
28
- - !ruby/object:Gem::Dependency
29
- name: echoe
30
- type: :development
31
- version_requirement:
32
- version_requirements: !ruby/object:Gem::Requirement
33
- requirements:
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: "0"
37
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
38
37
  description: Convenience classes for interacing with UCB's LDAP directory
39
38
  email: runner@berkeley.edu
40
39
  executables: []
@@ -65,7 +64,6 @@ files:
65
64
  - README
66
65
  - Rakefile
67
66
  - TODO
68
- - init.rb
69
67
  - lib/person/adv_con_person.rb
70
68
  - lib/person/affiliation_methods.rb
71
69
  - lib/person/generic_attributes.rb
@@ -83,33 +81,42 @@ files:
83
81
  - lib/ucb_ldap_service.rb
84
82
  - lib/ucb_ldap_student_term.rb
85
83
  - schema/schema.yml
86
- - version.yml
87
84
  - ucb_ldap.gemspec
85
+ - version.yml
88
86
  has_rdoc: true
89
87
  homepage: http://ucbrb.rubyforge.org/ucb_ldap
88
+ licenses: []
89
+
90
90
  post_install_message:
91
91
  rdoc_options:
92
92
  - -o doc --inline-source -T hanna lib/*.rb
93
93
  require_paths:
94
94
  - lib
95
95
  required_ruby_version: !ruby/object:Gem::Requirement
96
+ none: false
96
97
  requirements:
97
98
  - - ">="
98
99
  - !ruby/object:Gem::Version
100
+ hash: 3
101
+ segments:
102
+ - 0
99
103
  version: "0"
100
- version:
101
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
+ none: false
102
106
  requirements:
103
107
  - - ">="
104
108
  - !ruby/object:Gem::Version
109
+ hash: 11
110
+ segments:
111
+ - 1
112
+ - 2
105
113
  version: "1.2"
106
- version:
107
114
  requirements: []
108
115
 
109
116
  rubyforge_project: ucbrb
110
- rubygems_version: 1.3.1
117
+ rubygems_version: 1.3.7
111
118
  signing_key:
112
- specification_version: 2
119
+ specification_version: 3
113
120
  summary: Convenience classes for interacing with UCB's LDAP directory
114
121
  test_files: []
115
122
 
data/init.rb DELETED
@@ -1 +0,0 @@
1
- require 'ucb_ldap'