Project

General

Profile

« Previous | Next » 

Revision bc31521d

Added by Marc Dequènes almost 14 years ago

  • ID bc31521dffcfdd715119608c38bc96ac71f18b0f

[fix] corrected display of unknown DN (closes #109)

View differences:

lib/ldap_shadows/display_helper.rb
str = field_name
str += " [#{key}]" if options[:handles]
if val[:binary] and options[:skip_binary]
if val[:value].nil?
str += " -> not set"
elsif val[:binary] and options[:skip_binary]
str += " -> #{val[:value].size} file(s) available"
else
str += ": " + (val[:multiple] ?
lib/ldap_shadows/manipulation_helper.rb
case syntax
when "1.3.6.1.4.1.1466.115.121.1.12"
raw_item = ActiveLdap::Base.find(:first, :base => val, :scope => :base)
LdapShadows::Manipulation.raw_item_info(shadow, raw_item, val.to_s)[:full_handle]
LdapShadows::Manipulation.raw_item_info(shadow, raw_item, val.to_s)[:name]
else
val
end

Also available in: Unified diff