| Class | ActiveLdap::Schema::Syntaxes::DistinguishedName |
| In: |
lib/active_ldap/schema/syntaxes.rb
|
| Parent: | Base |
# File lib/active_ldap/schema/syntaxes.rb, line 137
137: def normalize_value(value)
138: if value.is_a?(DN)
139: value.to_s
140: else
141: value
142: end
143: end
# File lib/active_ldap/schema/syntaxes.rb, line 130
130: def type_cast(value)
131: return nil if value.nil?
132: DN.parse(value)
133: rescue DistinguishedNameInvalid
134: value
135: end