Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for LdapUser (0.05 sec)

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

    import org.codelibs.fess.mylasta.direction.FessConfig;
    import org.codelibs.fess.util.ComponentUtil;
    import org.dbflute.optional.OptionalThing;
    
    /**
     * An LDAP user.
     */
    public class LdapUser implements FessUser {
    
        private static final long serialVersionUID = 1L;
    
        /** The environment for LDAP connection. */
        protected Hashtable<String, String> env;
    
        /** The name of the user. */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/ldap/LdapUserTest.java

            assertEquals("anotheruser", user2.getName());
    
            // Test with empty name
            LdapUser user3 = new LdapUser(testEnv, "");
            assertEquals("", user3.getName());
    
            // Test with null name
            LdapUser user4 = new LdapUser(testEnv, null);
            assertNull(user4.getName());
        }
    
        public void test_getEnvironment() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/ldap/LdapManagerTest.java

            });
            LdapManager ldapManager = new LdapManager();
            ldapManager.fessConfig = ComponentUtil.getFessConfig();
            final List<String> permissionList = new ArrayList<>();
            LdapUser user = new LdapUser(new Hashtable<>(), "test") {
                @Override
                public String[] getPermissions() {
                    return permissionList.toArray(n -> new String[n]);
                }
            };
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/ldap/LdapManager.java

         * @return a new LdapUser instance
         */
        protected LdapUser createLdapUser(final String username, final Hashtable<String, String> env) {
            return new LdapUser(env, username);
        }
    
        /**
         * Retrieves roles for the specified LDAP user based on the provided filters.
         *
         * @param ldapUser the LDAP user to retrieve roles for
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 82K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java

                if (!fessConfig.isAdminUser(username)) {
                    final OptionalEntity<FessUser> ldapUser = ComponentUtil.getLdapManager().login(username, password);
                    if (ldapUser.isPresent()) {
                        return ldapUser;
                    }
                }
                return doFindLoginUser(username, encryptPassword(password));
            });
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 12.1K bytes
    - Viewed (0)
Back to top