ruby-activeldap-debug 0.5.5 → 0.5.6

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.
@@ -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
- #{klass}.find_all(:attribute => foreign_key, :value => item, :objects => objects).each do |match|
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
@@ -907,7 +907,7 @@ require 'activeldap/configuration'
907
907
  require 'activeldap/schema2'
908
908
 
909
909
  module ActiveLDAP
910
- VERSION = "0.5.5"
910
+ VERSION = "0.5.6"
911
911
  end
912
912
 
913
913
  ActiveLDAP::Base.class_eval do
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.4
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.5
7
- date: 2005-02-20
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