Package org.codelibs.fess.ldap
Class LdapUtil
java.lang.Object
org.codelibs.fess.ldap.LdapUtil
Utility class for LDAP operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringescapeValue(String value) Escapes special characters in a value for use in LDAP search filters.
-
Method Details
-
escapeValue
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:
-