Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for resetuser (0.17 sec)

  1. src/test/java/org/codelibs/fess/auth/chain/LdapChainTest.java

            testFessConfig.ldapAdminSyncPassword = false;
    
            boolean result = ldapChain.changePassword("testuser", "newpassword");
    
            assertFalse(result); // returns !changed || syncPassword = !true || false = false
            assertEquals("testuser", testLdapManager.changePasswordUsername);
            assertEquals("newpassword", testLdapManager.changePasswordPassword);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/FessUserNotFoundExceptionTest.java

        public void test_constructor_withValidUsername() {
            // Test with a normal username
            String username = "testuser";
            FessUserNotFoundException exception = new FessUserNotFoundException(username);
    
            assertNotNull(exception);
            assertEquals("User is not found: testuser", exception.getMessage());
            assertNull(exception.getCause());
        }
    
        public void test_constructor_withEmptyUsername() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/audit/SecurityAuditLoggerTest.java

        }
    
        @Test
        @DisplayName("Test log authentication success")
        void testLogAuthentication() {
            logger.logAuthentication(true, "testuser", "DOMAIN", "192.168.1.1");
    
            Map<EventType, Long> stats = logger.getStatistics();
            assertEquals(Long.valueOf(1), stats.get(EventType.AUTHENTICATION_SUCCESS), "Should have 1 authentication event");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java

            principalVector.add(new DERTaggedObject(0, new ASN1Integer(1))); // name-type
            ASN1EncodableVector nameVector = new ASN1EncodableVector();
            nameVector.add(new DERGeneralString("testuser"));
            principalVector.add(new DERTaggedObject(1, new DERSequence(nameVector)));
            vector.add(new DERTaggedObject(3, new DERSequence(principalVector)));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java

            mockAuth.username = "testuser";
            mockAuth.domain = "TESTDOMAIN";
            mockAuth.password = "testpass";
    
            when(mockAuth.getAnsiHash(any(byte[].class))).thenReturn(new byte[24]);
            when(mockAuth.getUnicodeHash(any(byte[].class))).thenReturn(new byte[24]);
            when(mockAuth.getName()).thenReturn("testuser");
            when(mockAuth.getDomain()).thenReturn("TESTDOMAIN");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. cmd/sftp-server_test.go

    	ctx, cancel := context.WithTimeout(context.Background(), testDefaultTimeout)
    	defer cancel()
    
    	accessKey, secretKey := mustGenerateCredentials(c)
    	err := s.adm.SetUser(ctx, accessKey, secretKey, madmin.AccountEnabled)
    	if err != nil {
    		c.Fatalf("Unable to set user: %v", err)
    	}
    
    	userReq := madmin.PolicyAssociationReq{
    		Policies: []string{"readwrite"},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Feb 27 18:43:32 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  7. cmd/admin-handlers-users-race_test.go

    	}
    
    	userCount := 50
    	accessKeys := make([]string, userCount)
    	secretKeys := make([]string, userCount)
    	for i := range userCount {
    		accessKey, secretKey := mustGenerateCredentials(c)
    		err = s.adm.SetUser(ctx, accessKey, secretKey, madmin.AccountEnabled)
    		if err != nil {
    			c.Fatalf("Unable to set user: %v", err)
    		}
    
    		userReq := madmin.PolicyAssociationReq{
    			Policies: []string{policy},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/NtlmContextTest.java

    @ExtendWith(MockitoExtension.class)
    class NtlmContextTest {
    
        @Mock
        private NtlmPasswordAuthentication mockAuth;
    
        private final String domain = "TEST_DOMAIN";
        private final String username = "testUser";
        private final String password = "testPassword";
        private final String workstation = "TEST_WORKSTATION";
    
        @BeforeEach
        void setUp() {
            // MockitoExtension handles mock initialization
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/http/NtlmHttpServletRequestTest.java

         * Verifies that the method returns the name of the principal.
         */
        @Test
        void testGetRemoteUser() {
            // Arrange: Define the expected user name from the principal
            String expectedUserName = "testUser";
            when(mockPrincipal.getName()).thenReturn(expectedUserName);
    
            // Act: Call the method under test
            String actualUserName = ntlmRequest.getRemoteUser();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbSessionTest.java

        private MockedStatic<SmbTransport> smbtStatic;
    
        @BeforeEach
        void setUp() throws Exception {
            // Create a real NtlmPasswordAuthentication instance
            auth = new NtlmPasswordAuthentication("TESTDOMAIN", "testuser", "testpass");
    
            // Initialize ServerData to avoid NullPointerException
            SmbTransport.ServerData serverData = transport.new ServerData();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top