module ActiveLdap::Escape

def ldap_filter_escape(str)

def ldap_filter_escape(str)
  str.to_s.gsub(/\*/, "**")
end

def ldap_filter_unescape(str)

def ldap_filter_unescape(str)
  str.to_s.gsub(/\*\*/, "*")
end