Class Index [+]

Quicksearch

ActiveLdap::Schema::Syntaxes::NameAndOptionalUID

Private Instance Methods

validate_normalized_value(value, original_value) click to toggle source
     # File lib/active_ldap/schema/syntaxes.rb, line 291
291:         def validate_normalized_value(value, original_value)
292:           separator_index = value.rindex("#")
293:           if separator_index
294:             dn = value[0, separator_index]
295:             bit_string = value[(separator_index + 1)..1]
296:             bit_string_reason = BitString.new.validate(bit_string)
297:             dn_reason = DistinguishedName.new.validate(dn)
298:             if bit_string_reason
299:               if dn_reason
300:                 value_reason = DistinguishedName.new.validate(value)
301:                 return nil unless value_reason
302:                 dn_reason
303:               else
304:                 bit_string_reason
305:               end
306:             else
307:               dn_reason
308:             end
309:           else
310:             DistinguishedName.new.validate(value)
311:           end
312:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.