Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for unlockAccount (0.32 sec)

  1. src/main/java/jcifs/util/AuthenticationRateLimiter.java

        }
    
        /**
         * Manually unlock an account
         *
         * @param username the username to unlock
         * @return true if account was unlocked, false if not found
         */
        public boolean unlockAccount(String username) {
            AccountAttempts account = accountAttempts.get(username);
            if (account != null) {
                account.reset();
                log.info("Manually unlocked account: {}", username);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

                fail("Should be locked out");
            } catch (SmbException e) {
                // Expected
            }
    
            // Manually unlock
            assertTrue(rateLimiter.unlockAccount(username), "Manual unlock should succeed");
    
            // Should be allowed again
            assertTrue(rateLimiter.checkAttempt(username, ip), "Should be allowed after manual unlock");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top