Revision d143d217
Added by Marc Dequènes about 15 years ago
- ID d143d21735a5172dadb7cbf99a6c71fbec2a8227
lib/ldap_shadows/manipulation_helper.rb | ||
---|---|---|
shadow.objects.each do |obj_hdl|
|
||
obj_klass = shadow.get_object(obj_hdl)
|
||
ldap_classes = obj_klass.required_classes
|
||
return obj_hdl if raw_item.classes & ldap_classes == ldap_classes
|
||
return obj_hdl if (raw_item.classes & ldap_classes == ldap_classes) and (obj_klass.excluded_classes & raw_item.classes).empty?
|
||
end
|
||
nil
|
||
end
|
Also available in: Unified diff
[fix] ensure objects are properly recognized (care about excluded objectClasses)