Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for LdapUtil (0.05 seconds)

  1. src/main/java/org/codelibs/fess/ldap/LdapUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.ldap;
    
    /**
     * Utility class for LDAP operations.
     */
    public final class LdapUtil {
    
        private LdapUtil() {
        }
    
        /**
         * Escapes special characters in a value for use in LDAP search filters.
         * This method escapes characters that have special meaning in LDAP filter expressions
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 08:06:20 GMT 2026
    - 2K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/ldap/LdapUtilTest.java

            assertEquals("\\2a", LdapUtil.escapeValue("*"));
            assertEquals("\\2a\\2a\\2a", LdapUtil.escapeValue("***"));
            assertEquals("test\\2auser", LdapUtil.escapeValue("test*user"));
        }
    
        @Test
        public void test_escapeValue_parentheses() {
            assertEquals("\\28admin\\29", LdapUtil.escapeValue("(admin)"));
            assertEquals("\\28", LdapUtil.escapeValue("("));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

            if (username == null) {
                value = StringUtil.EMPTY;
            } else if (maxLength >= 0 && username.length() > maxLength) {
                value = LdapUtil.escapeValue(username.substring(0, maxLength));
            } else {
                value = LdapUtil.escapeValue(username);
            }
            return String.format(getSystemProperty(Constants.LDAP_SECURITY_PRINCIPAL, StringUtil.EMPTY), value);
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 92.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/ldap/LdapManager.java

         * @see <a href="https://tools.ietf.org/html/rfc4515">RFC 4515 - LDAP String Representation of Search Filters</a>
         * @deprecated Use {@link LdapUtil#escapeValue(String)} instead
         */
        @Deprecated
        protected String escapeLDAPSearchFilter(final String filter) {
            return LdapUtil.escapeValue(filter);
        }
    
        /**
         * Normalizes a permission name based on configuration settings.
         *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 08:06:20 GMT 2026
    - 85.2K bytes
    - Click Count (0)
Back to Top