ruby-activeldap-debug 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/activeldap/associations.rb +9 -1
- data/lib/activeldap.rb +1 -1
- metadata +3 -3
@@ -107,8 +107,16 @@ module ActiveLDAP
|
|
107
107
|
end
|
108
108
|
results = []
|
109
109
|
@data["#{key}"].each do |item|
|
110
|
+
fkey = ""
|
111
|
+
if foreign_key == "dn" and not item.empty?
|
112
|
+
fkey = item.split(',')[0].split('=')[0]
|
113
|
+
item = item.split(',')[0].split('=')[1]
|
114
|
+
end
|
110
115
|
# This will even yield entries that don't necessarily exist
|
111
|
-
|
116
|
+
if foreign_key != "dn"
|
117
|
+
fkey = foreign_key
|
118
|
+
end
|
119
|
+
#{klass}.find_all(:attribute => fkey, :value => item, :objects => objects).each do |match|
|
112
120
|
results << match
|
113
121
|
end
|
114
122
|
end
|
data/lib/activeldap.rb
CHANGED
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.10
|
3
3
|
specification_version: 1
|
4
4
|
name: ruby-activeldap-debug
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.5.
|
7
|
-
date: 2005-
|
6
|
+
version: 0.5.6
|
7
|
+
date: 2005-05-06
|
8
8
|
summary: Ruby/ActiveLDAP is a object-oriented API to LDAP
|
9
9
|
require_paths:
|
10
10
|
- lib
|