Class LdapHelper

java.lang.Object
org.apache.camel.component.ldap.LdapHelper

public final class LdapHelper extends Object
  • Method Details

    • escapeFilter

      public static String escapeFilter(String filter)
      Given an LDAP search string, returns the string with certain characters escaped according to RFC 2254 guidelines. The character mapping is as follows:
      • * = \2a
      • ( = \28
      • ) = \29
      • \ = \5c
      • \0 = \00
      Parameters:
      filter - string to escape according to RFC 2254 guidelines
      Returns:
      String the escaped/encoded result