Class LdapUtil

java.lang.Object
org.codelibs.fess.ldap.LdapUtil

public final class LdapUtil extends Object
Utility class for LDAP operations.
  • Method Details

    • escapeValue

      public static String escapeValue(String value)
      Escapes special characters in a value for use in LDAP search filters. This method escapes characters that have special meaning in LDAP filter expressions to prevent LDAP injection attacks.
      Parameters:
      value - the value to escape (null is treated as empty string)
      Returns:
      the escaped value safe for use in LDAP search filters
      See Also: