in lib/omniauth-ldap/adaptor.rb [121:134]
def translate_method
method = @encryption || @method
method ||= "plain"
normalized_method = method.to_s.downcase.to_sym
unless ENCRYPTION_METHOD.has_key?(normalized_method)
available_methods = ENCRYPTION_METHOD.keys.collect {|m| m.inspect}.join(", ")
format = "%s is not one of the available connect methods: %s"
raise ConfigurationError, format % [method.inspect, available_methods]
end
ENCRYPTION_METHOD[normalized_method]
end